combine: More distribute_notes trouble (PR69737)
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 11 Feb 2016 22:26:35 +0000 (23:26 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 11 Feb 2016 22:26:35 +0000 (23:26 +0100)
commitec4836a75da03d1b93df6a9dff3da3b597676ed9
tree6427fe8f5f366cf98ea4068cf7ed38b06148268c
parent76fe932be367d60f45e8a69a83d3efcf271f6e63
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.

From-SVN: r233356
gcc/ChangeLog
gcc/combine.c