]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/106844 - fix ICE in init_use_preds
authorRichard Biener <rguenther@suse.de>
Tue, 6 Sep 2022 08:42:50 +0000 (10:42 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 6 Sep 2022 08:55:31 +0000 (10:55 +0200)
commit1a4e1425f8498580994e32ceb3c50bd52616a82d
treec34cf1dcf777fdf7584169fc98c3270798afedfd
parente33e61d417eb5e981bb7d709f8681a2f55ed518a
tree-optimization/106844 - fix ICE in init_use_preds

The following fixes an oversight in the last change to
compute_control_dep_chain where we have to return whether we found
a chain.

PR tree-optimization/106844
* gimple-predicate-analysis.cc (compute_control_dep_chain):
Return whether we found a chain.

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