diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-10-24 20:24:03 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-10-24 20:24:03 +0000 |
commit | c71e12010352a78de030b253bba4792d4d0fc005 (patch) | |
tree | fd46fe299572bb3d0c2f8277da0cb16f5207d132 /gcc/combine.c | |
parent | 5129d2ceee602f1539c4024d081485ea0a7c5f7c (diff) | |
download | gcc-c71e12010352a78de030b253bba4792d4d0fc005.zip gcc-c71e12010352a78de030b253bba4792d4d0fc005.tar.gz gcc-c71e12010352a78de030b253bba4792d4d0fc005.tar.bz2 |
combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL when deleting libcall sequence collapsed to...
* combine.c (distribute_notes): Discard REG_LIBCALL and REG_RETVAL
when deleting libcall sequence collapsed to a single instruction.
From-SVN: r37037
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index f381c14..3f90230 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -12239,6 +12239,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) place = prev_real_insn (from_insn); if (tem && place) XEXP (tem, 0) = place; + /* If we're deleting the last remaining instruction of a + libcall sequence, don't add the notes. */ + else if (XEXP (note, 0) == from_insn) + tem = place = 0; } break; @@ -12252,6 +12256,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) place = next_real_insn (from_insn); if (tem && place) XEXP (tem, 0) = place; + /* If we're deleting the last remaining instruction of a + libcall sequence, don't add the notes. */ + else if (XEXP (note, 0) == from_insn) + tem = place = 0; } break; |