summaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-27 21:45:26 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-27 21:45:26 +0000
commit9ed780b5233d88c7970f9c8d248cbcf44f2909d5 (patch)
tree2d746e7a8a20d3c0e9cbb9a75fe5860b8165a125 /gcc/cse.c
parent4da37e2f5ec16c34e69a9b12ab93313094f841bf (diff)
downloadgcc-9ed780b5233d88c7970f9c8d248cbcf44f2909d5.tar.gz
* cse.c (cse_set_around_loop): When changing a constant load
to a register -register copy, add a REG_EQUAL note. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74007 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 7612a5a7ed5..faaf187b32c 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -6676,6 +6676,10 @@ cse_set_around_loop (rtx x, rtx insn, rtx loop_start)
}
else
{
+ if (CONSTANT_P (SET_SRC (set))
+ && ! find_reg_equal_equiv_note (insn))
+ set_unique_reg_note (insn, REG_EQUAL,
+ SET_SRC (set));
if (control_flow_insn_p (p))
/* p can cause a control flow transfer so it
is the last insn of a basic block. We can't