From: aldyh Date: Thu, 16 Dec 2004 19:19:04 +0000 (+0000) Subject: * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace X-Git-Tag: upstream/4.9.2~65018 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a869ee0ba5e17d2c49327378e393636e0cdda9e3;p=platform%2Fupstream%2Flinaro-gcc.git * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace hard registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92278 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + Aldy Hernandez + + * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace + hard registers. + 2004-12-16 H.J. Lu 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;