From 7cd689bcf045c55b1786cdbc84c9f63a07070a58 Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Tue, 20 Feb 2007 22:14:41 +0000 Subject: rtl.h (remove_reg_equal_equiv_notes): New prototype. * 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. From-SVN: r122178 --- gcc/combine.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'gcc/combine.c') diff --git a/gcc/combine.c b/gcc/combine.c index 6605b7a..d1277d4 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 = ®_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 -- cgit v1.1