]> git.ipfire.org Git - thirdparty/gcc.git/commit
ifcvt: Call fixup_partitions (PR83361)
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 11 Dec 2017 21:23:08 +0000 (22:23 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 11 Dec 2017 21:23:08 +0000 (22:23 +0100)
commit9221f990e762755626257b019839fb83baee791f
treea59c34858bd817724bd7482e02dd84a1b2f584b5
parenta5648717a8826a1bb60afd31b56c48b60d3813d4
ifcvt: Call fixup_partitions (PR83361)

After converting a conditional branch to an unconditional trap to a
conditional trap, if the original trap is still reachable from another
path, it may be that it is in a hot basic block  and only reachable from
cold blocks.  Fix that up.

PR rtl-optimization/83361
* ifcvt.c (if_convert): Call fixup_partitions.

gcc/testsuite/
PR rtl-optimization/83361
* gcc.dg/pr83361.c: New testcase.

From-SVN: r255550
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83361.c [new file with mode: 0644]