rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)
commit0eff79f2065c03c2cd39c75d4a88523920ab9882
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Dec 2017 20:16:19 +0000 (18 20:16 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Dec 2017 20:16:19 +0000 (18 20:16 +0000)
treebc3a5180cbac1a4b320897ff68c2487a50a04b1c
parent6d8c9f39007790df9c08fca1e4c458a22b04e9c4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255787 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/rtlanal.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83424.c [new file with mode: 0644]