aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2009-10-23 20:45:33 +0000
committerJeff Law <law@redhat.com>2009-10-23 20:45:33 +0000
commit1842abc1729f8464ebb6841bbba53c16e2ef85e4 (patch)
tree11cd53c01c82fef4a36dc441c177c8f5791e42b5 /gcc/gcse.c
parent7cb10b40862da77eb3b5b1d8849fcf9586cc76ee (diff)
parent4305ca1e7fb07a4366633371d39928486f440d40 (diff)
Merge from trunkreload-v2
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/reload-v2@153515 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 803ab3e5a14..7ccb05e1d85 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -2276,8 +2276,7 @@ try_replace_reg (rtx from, rtx to, rtx insn)
with our replacement. */
if (note != 0 && REG_NOTE_KIND (note) == REG_EQUAL)
set_unique_reg_note (insn, REG_EQUAL,
- simplify_replace_rtx (XEXP (note, 0), from,
- copy_rtx (to)));
+ simplify_replace_rtx (XEXP (note, 0), from, to));
if (!success && set && reg_mentioned_p (from, SET_SRC (set)))
{
/* If above failed and this is a single set, try to simplify the source of
@@ -3038,12 +3037,12 @@ bypass_block (basic_block bb, rtx setcc, rtx jump)
src = SET_SRC (pc_set (jump));
if (setcc != NULL)
- src = simplify_replace_rtx (src,
- SET_DEST (PATTERN (setcc)),
- SET_SRC (PATTERN (setcc)));
+ src = simplify_replace_rtx (src,
+ SET_DEST (PATTERN (setcc)),
+ SET_SRC (PATTERN (setcc)));
new_rtx = simplify_replace_rtx (src, reg_used->reg_rtx,
- SET_SRC (set->expr));
+ SET_SRC (set->expr));
/* Jump bypassing may have already placed instructions on
edges of the CFG. We can't bypass an outgoing edge that