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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jeff Law <l...@gcc.gnu.org>:

https://gcc.gnu.org/g:db24bdc743cf23ea12d2dcf8254d86ab366bb46d

commit r13-3211-gdb24bdc743cf23ea12d2dcf8254d86ab366bb46d
Author: Jeff Law <jeffreya...@gmail.com>
Date:   Tue Oct 11 00:44:26 2022 -0400

    [PR rtl-optimization/107182] Clear EDGE_CROSSING for jump->ret optimization

    When turning a jump to a return into a return, we need to clear
EDGE_CROSSING
    of the fallthru edge to prevent a checking failure.

    I considered not applying the transformation when the edge has
EDGE_CROSSING
    set, but it still seems like we ought to eliminate the unnecessary jump in
    that case.

    gcc/
            PR rtl-optimization/107182
            * cfgrtl.cc (fixup_reorder_chain): When optimizing a jump to a
            return, clear EDGE_CROSSING on the appropriate edge.

Reply via email to