]> gcc.gnu.org Git - gcc.git/commit
hardcmp: split before dispatch edge
authorAlexandre Oliva <oliva@adacore.com>
Thu, 24 Mar 2022 13:02:27 +0000 (10:02 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 24 Mar 2022 13:02:27 +0000 (10:02 -0300)
commitb8c4171ebd72079e55aceadbcfc883f517cdf895
tree858d5d1021ab843e7cfc4fdfda75b0546d16fd1e
parent11fb784ac592567dbcb7874c27e67ee0feb8fbf0
hardcmp: split before dispatch edge

If we harden a compare at the end of a block with an edge to the
abnormal dispatch block, it won't have a single successor.  Arrange to
split the block at its final stmt so as to have a single succ.

for  gcc/ChangeLog

PR middle-end/104975
* gimple-harden-conditionals.cc
(pass_harden_compares::execute): Force split in case of
multiple edges.

for  gcc/testsuite/ChangeLog

PR middle-end/104975
* gcc.dg/pr104975.c: New.
gcc/gimple-harden-conditionals.cc
gcc/testsuite/gcc.dg/pr104975.c [new file with mode: 0644]
This page took 0.063729 seconds and 5 git commands to generate.