aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2004-12-16 19:19:04 +0000
committerAldy Hernandez <aldyh@redhat.com>2004-12-16 19:19:04 +0000
commitbd94f5f8a4de540f61c3d2a1e6038b1a176b1b01 (patch)
treed37416966aa8ee44a0c038023b66729a04aca3d2
parente84020769834e920fa8d80c47db2997f7045dc2f (diff)
* simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
hard registers. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-3_4-e500-branch@92279 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 78bfaf29038..b5cd7ee711d 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -355,7 +355,7 @@ simplify_replace_rtx (rtx x, rtx old, rtx new)
}
else if (code == REG)
{
- if (REG_P (old) && REGNO (x) == REGNO (old))
+ if (rtx_equal_p (x, old))
return new;
}
break;