summaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 22:14:41 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-20 22:14:41 +0000
commitf16feee25a739555a76f0cd97aca0b2f8f267aa3 (patch)
tree86910b46650f770e82274e25d7d3f2c992409256 /gcc/combine.c
parente4f51d19ea7e0a169e7efbce63cc8c62e71851bb (diff)
downloadgcc-f16feee25a739555a76f0cd97aca0b2f8f267aa3.tar.gz
* rtl.h (remove_reg_equal_equiv_notes): New prototype.
* rtlanal.c (remove_reg_equal_equiv_notes): New function. * combine.c (adjust_for_new_dest): Use it. * postreload.c (reload_combine): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122178 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 6605b7a3558..d1277d49639 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1726,18 +1726,8 @@ likely_spilled_retval_p (rtx insn)
static void
adjust_for_new_dest (rtx insn)
{
- rtx *loc;
-
/* For notes, be conservative and simply remove them. */
- loc = &REG_NOTES (insn);
- while (*loc)
- {
- enum reg_note kind = REG_NOTE_KIND (*loc);
- if (kind == REG_EQUAL || kind == REG_EQUIV)
- *loc = XEXP (*loc, 1);
- else
- loc = &XEXP (*loc, 1);
- }
+ remove_reg_equal_equiv_notes (insn);
/* The new insn will have a destination that was previously the destination
of an insn just above it. Call distribute_links to make a LOG_LINK from