]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/106881 - constrain uninit control edge add
authorRichard Biener <rguenther@suse.de>
Thu, 8 Sep 2022 10:22:26 +0000 (12:22 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 8 Sep 2022 11:11:32 +0000 (13:11 +0200)
commitc8d3b44dfa2851659f966627835497667c5fed6c
tree53ac590dec21943b05a62252a189fe876d9e5716
parent794a01d7dcf306578bc5d0d147895c58a91506de
tree-optimization/106881 - constrain uninit control edge add

The following avoids adding fallthru edges to the control chain from
the post-dominator walk.

PR tree-optimization/106881
* gimple-predicate-analysis.cc (compute_control_dep_chain_pdom):
Add only non-fallthru edges and avoid the same set of edges
as the caller does.

* gcc.dg/uninit-pr106881.c: New testcase.
gcc/gimple-predicate-analysis.cc
gcc/testsuite/gcc.dg/uninit-pr106881.c [new file with mode: 0644]