diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2007-02-20 22:14:41 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2007-02-20 22:14:41 +0000 |
commit | 7cd689bcf045c55b1786cdbc84c9f63a07070a58 (patch) | |
tree | 86910b46650f770e82274e25d7d3f2c992409256 /gcc/postreload.c | |
parent | ea8f106d4c4e16933ef9bbd8bbd5a8588cd6c53f (diff) | |
download | gcc-7cd689bcf045c55b1786cdbc84c9f63a07070a58.zip gcc-7cd689bcf045c55b1786cdbc84c9f63a07070a58.tar.gz gcc-7cd689bcf045c55b1786cdbc84c9f63a07070a58.tar.bz2 |
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
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r-- | gcc/postreload.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index d1e58ab..47930ad 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -887,22 +887,13 @@ reload_combine (void) if (apply_change_group ()) { - rtx *np; - /* Delete the reg-reg addition. */ delete_insn (insn); if (reg_state[regno].offset != const0_rtx) /* Previous REG_EQUIV / REG_EQUAL notes for PREV are now invalid. */ - for (np = ®_NOTES (prev); *np;) - { - if (REG_NOTE_KIND (*np) == REG_EQUAL - || REG_NOTE_KIND (*np) == REG_EQUIV) - *np = XEXP (*np, 1); - else - np = &XEXP (*np, 1); - } + remove_reg_equal_equiv_notes (prev); reg_state[regno].use_index = RELOAD_COMBINE_MAX_USES; reg_state[REGNO (const_reg)].store_ruid |