https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83361

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Mon Dec 11 21:23:08 2017
New Revision: 255550

URL: https://gcc.gnu.org/viewcvs?rev=255550&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/pr83361.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ifcvt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to