tree-optimization/111039 - abnormals and bit test merging
commit482551a79a3d3f107f6239679ee74655cfe8707e
authorRichard Biener <rguenther@suse.de>
Thu, 17 Aug 2023 11:10:14 +0000 (17 13:10 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 17 Aug 2023 13:27:30 +0000 (17 15:27 +0200)
tree0086ae90c7eef2f64510a5fbd89052dffcc6ec97
parent8f3c4517b1fff965f2bdedcf376dcfd91cda422b
tree-optimization/111039 - abnormals and bit test merging

The following guards the bit test merging code in if-combine against
the appearance of SSA names used in abnormal PHIs.

PR tree-optimization/111039
* tree-ssa-ifcombine.cc (ifcombine_ifandif): Check for
SSA_NAME_OCCURS_IN_ABNORMAL_PHI.

* gcc.dg/pr111039.c: New testcase.
gcc/testsuite/gcc.dg/pr111039.c [new file with mode: 0644]
gcc/tree-ssa-ifcombine.cc