combine: More distribute_notes trouble (PR69737)
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2016 22:26:35 +0000 (22:26 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Feb 2016 22:26:35 +0000 (22:26 +0000)
commitbec578122c882378d894f32e2ed9c4e683353893
tree6427fe8f5f366cf98ea4068cf7ed38b06148268c
parent42c87ca93df2410a1efeed08cad97b44e00818a9
combine: More distribute_notes trouble (PR69737)

PR64682 is a problem in distribute_notes, where it has trouble putting
a REG_DEAD note for a reg that is set twice in the right spot.  My fix
for that did the wrong thing for PR69567.  And then my attempted fix
for that one made PR64682 fail again.

Instead, let's just lose the note in such complicated cases, like we
already do in certain similar cases.

PR rtl-optimization/64682
PR rtl-optimization/69567
PR rtl-optimization/69737
* combine.c (distribute_notes) <REG_DEAD>: If the register is set
in I2 as well, just lose it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233356 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c