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

--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Tue Jan 16 16:20:10 2018
New Revision: 256750

URL: https://gcc.gnu.org/viewcvs?rev=256750&root=gcc&view=rev
Log:
rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)

In PR83424 combine's move_deaths puts a REG_DEAD note in the wrong place
because dead_or_set_regno_p does not account for CLOBBER insns.  This
fixes it.


        PR rtl-optimization/83424
        * rtlanal.c (dead_or_set_regno_p): Handle CLOBBER just like SET.

gcc/testsuite/
        PR rtl-optimization/83424
        * gcc.dg/pr83424.c: New testsuite.

Added:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83424.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/rtlanal.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to