]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111070 - fix ICE with recent ifcombine fix
authorRichard Biener <rguenther@suse.de>
Mon, 21 Aug 2023 07:01:00 +0000 (09:01 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 21 Aug 2023 08:07:30 +0000 (10:07 +0200)
commit966b0a96523fb7adbf498ac71df5e033c70dc546
treefd99b443feb242b5ae63046802565cdc0c0ce36f
parent47b833a9abe19d862a773d20dd6f961dcf811a11
tree-optimization/111070 - fix ICE with recent ifcombine fix

We now got test coverage for non-SSA name bits so the following amends
the SSA_NAME_OCCURS_IN_ABNORMAL_PHI checks.

PR tree-optimization/111070
* tree-ssa-ifcombine.cc (ifcombine_ifandif): Check we have
an SSA name before checking SSA_NAME_OCCURS_IN_ABNORMAL_PHI.

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