diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-03-17 09:01:26 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-03-17 09:01:26 +0100 |
commit | 5adb7c859d410711d3c9a6bbc11255ecb79f2799 (patch) | |
tree | 1067ddc695c98bec88e6ab52e00f6b67a3dc0844 /gcc/rtlanal.c | |
parent | e7c0c2b0db9c7ffde0e67bfc41e8a3159dd0aa0e (diff) | |
download | gcc-5adb7c859d410711d3c9a6bbc11255ecb79f2799.zip gcc-5adb7c859d410711d3c9a6bbc11255ecb79f2799.tar.gz gcc-5adb7c859d410711d3c9a6bbc11255ecb79f2799.tar.bz2 |
re PR rtl-optimization/70261 (r234265 causes fails on rs6000)
PR target/70261
* rtlanal.c (replace_rtx): Revert 2016-03-16 change.
From-SVN: r234279
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 74b593d..bacc5f2 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); |