]> git.ipfire.org Git - people/ms/gcc.git/commit
middle-end: Fix phi-ssa assertion triggers. [PR106519]
authorTamar Christina <tamar.christina@arm.com>
Thu, 4 Aug 2022 15:35:31 +0000 (16:35 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 4 Aug 2022 15:35:31 +0000 (16:35 +0100)
commitc832ec4c3ec4853ad89ff3b0dbf6e9454e75e8cc
tree9af9c6071176f56b879eb0b12ea58a4c5a1dc041
parent39579ba8de9d91eafcc4943259b154a9e66538f1
middle-end: Fix phi-ssa assertion triggers.  [PR106519]

For the diamond PHI form in tree_ssa_phiopt_worker we need to
extract edge e2 sooner.  This changes it so we extract it at the
same time we determine we have a diamond shape.

gcc/ChangeLog:

PR middle-end/106519
* tree-ssa-phiopt.cc (tree_ssa_phiopt_worker): Check final phi edge for
diamond shapes.

gcc/testsuite/ChangeLog:

PR middle-end/106519
* gcc.dg/pr106519.c: New test.
gcc/testsuite/gcc.dg/pr106519.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.cc