diff options
author | J"orn Rennecke <joern.rennecke@superh.com> | 2004-06-15 16:11:41 +0000 |
---|---|---|
committer | J"orn Rennecke <joern.rennecke@superh.com> | 2004-06-15 16:11:41 +0000 |
commit | 49933b9924ab885d7d1623ed35cb9519d97fbeb9 (patch) | |
tree | a43437e0ca089716e1812b5769427c90e173dc4c | |
parent | fb9b0b6b6aca72b1f510da8d6d9e86d6176d6d35 (diff) |
* combine.c (distribute_notes): Comment typo fix.
* combine.c (distribute_notes): When checking if the register in
a REG_DEAD note is set, also check REG_INC.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/sh-elf-3_5-branch@83192 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog.sh-elf | 5 | ||||
-rw-r--r-- | gcc/combine.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog.sh-elf b/gcc/ChangeLog.sh-elf index 2e7aaaa71a7..08f13bfe49a 100644 --- a/gcc/ChangeLog.sh-elf +++ b/gcc/ChangeLog.sh-elf @@ -1,5 +1,10 @@ 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com> + * combine.c (distribute_notes): Comment typo fix. + + * combine.c (distribute_notes): When checking if the register in + a REG_DEAD note is set, also check REG_INC. + * cfglayout.c (fixup_reorder_chain): Handle case where the destination od E_TAKEN is EXIT_BLOCK_PTR. diff --git a/gcc/combine.c b/gcc/combine.c index 44ca720bc19..48108013373 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11948,7 +11948,7 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2) /* If the register is set or already dead at PLACE, we needn't do anything with this note if it is still a REG_DEAD note. - We can here if it is set at all, not if is it totally replace, + We check here if it is set at all, not if is it totally replaced, which is what `dead_or_set_p' checks, so also check for it being set partially. */ @@ -11963,6 +11963,7 @@ distribute_notes (rtx notes, rtx from_insn, rtx i3, rtx i2) SET_BIT (refresh_blocks, this_basic_block->index); if (dead_or_set_p (place, XEXP (note, 0)) + || find_reg_note (place, REG_INC, XEXP (note, 0)) || reg_bitfield_target_p (XEXP (note, 0), PATTERN (place))) { /* Unless the register previously died in PLACE, clear |