diff options
author | Richard Henderson <rth@redhat.com> | 2004-12-16 11:19:04 -0800 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2004-12-16 19:19:04 +0000 |
commit | b2b7ec86c288f64e01b8917cb10fd150e2427f09 (patch) | |
tree | 0573545b949c906991ff1c25c7e8d98f4bcced9a | |
parent | e3cb7e21bd0f66aed67ac57908c20c5fdacff041 (diff) | |
download | gcc-b2b7ec86c288f64e01b8917cb10fd150e2427f09.zip gcc-b2b7ec86c288f64e01b8917cb10fd150e2427f09.tar.gz gcc-b2b7ec86c288f64e01b8917cb10fd150e2427f09.tar.bz2 |
simplify-rtx.c (simplify_replace_rtx): Do not blindly replace hard registers.
* simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
hard registers.
[[Split portion of a mixed commit.]]
Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>
From-SVN: r92278.2
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b5afd17..24d534b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-12-16 Richard Henderson <rth@redhat.com> + Aldy Hernandez <aldyh@redhat.com> + + * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace + hard registers. + 2004-12-16 H.J. Lu <hongjiu.lu@intel.com> PR other/18508 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 3685bbf..5feeb65 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -337,7 +337,7 @@ simplify_replace_rtx (rtx x, rtx old_rtx, rtx new_rtx) } else if (code == REG) { - if (REG_P (old_rtx) && REGNO (x) == REGNO (old_rtx)) + if (rtx_equal_p (x, old_rtx)) return new_rtx; } break; |