]> git.ipfire.org Git - thirdparty/gcc.git/commit
mark region also for USE predicate discovery
authorRichard Biener <rguenther@suse.de>
Tue, 6 Sep 2022 13:30:53 +0000 (15:30 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 7 Sep 2022 10:07:52 +0000 (12:07 +0200)
commitd14514641d7d2052bc2bf1f09018e1f18f19850a
treefcb14baa952a9eedb07387c048845564139638be
parentd6106132907f6bd01109f2616d20a87edecc6fc6
mark region also for USE predicate discovery

The following makes sure to mark the dominating region also for
USE predicate discovery, avoiding compute_control_dep_chain to
walk to unrelated areas, eating up walking budget.

* gimple-predicate-analysis.cc (dfs_mark_dominating_region):
Adjust to take the region exit source as argument.
(uninit_analysis::init_from_phi_def): Adjust.
(uninit_analysis::init_use_preds): Mark the dominating region
before computing control dependences.
gcc/gimple-predicate-analysis.cc