diff options
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
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; |