aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/rtlanal.c11
2 files changed, 6 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d7640c7d1d9..00bc1a6e491 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/70261
+ * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
+
2016-03-16 Richard Henderson <rth@redhat.com>
Richard Biener <rguenth@suse.de>
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index 74b593d6935..bacc5f25f4a 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2961,16 +2961,7 @@ replace_rtx (rtx x, rtx from, rtx to)
if (x == 0)
return 0;
- if (GET_CODE (x) == REG)
- {
- if (GET_CODE (from) == REG
- && REGNO (x) == REGNO (from))
- {
- gcc_assert (GET_MODE (x) == GET_MODE (from));
- return to;
- }
- }
- else if (GET_CODE (x) == SUBREG)
+ if (GET_CODE (x) == SUBREG)
{
rtx new_rtx = replace_rtx (SUBREG_REG (x), from, to);