diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-30 12:41:45 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-30 12:41:45 +0000 |
commit | c080d8f03b137c42b863555fe98a53cbf79b0c98 (patch) | |
tree | bf284af1d2de346c28438607b4461f75a47c178a /gcc/explow.c | |
parent | 1a5a5cd8e1186b23c202356655578e6f328aa361 (diff) | |
download | gcc-c080d8f03b137c42b863555fe98a53cbf79b0c98.tar.gz |
* emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
* rtl.h (set_unique_reg_note): Change return value.
* gcse.c (try_replace_reg): Use set_unique_reg_note.
* cse.c (cse_insn): Likewise.
* expr.c (emit_move_insn): Likewise.
* explow.c (force_reg): Likewise.
* local-alloc (update_equiv_regs): Likewise.
* loop.c (move_moveables, load_mems): Likewise.
* reload (find_reloads): Likewise.
* gcc.dg/20011029-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46636 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index d0735aab78a..940a8395191 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -743,14 +743,7 @@ force_reg (mode, x) if (CONSTANT_P (x) && (set = single_set (insn)) != 0 && SET_DEST (set) == temp) - { - rtx note = find_reg_note (insn, REG_EQUAL, NULL_RTX); - - if (note) - XEXP (note, 0) = x; - else - REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_EQUAL, x, REG_NOTES (insn)); - } + set_unique_reg_note (insn, REG_EQUAL, x); return temp; } |