]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[cse][3/4] Don't overwrite original rtx when folding source of set
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 4 Feb 2016 09:56:13 +0000 (09:56 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 4 Feb 2016 09:56:13 +0000 (09:56 +0000)
PR target/65932
PR target/67714
* cse.c (cse_insn): Pass NULL to fold_rtx when initially
folding the source of a SET.

From-SVN: r233133

gcc/ChangeLog
gcc/cse.c

index d5936b78d11cd9ecdbe3f1adc1e5c9071fa04e92..3e2f22af0925a477ed724837c30cd5a4074db41c 100644 (file)
@@ -1,3 +1,10 @@
+2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       PR target/65932
+       PR target/67714
+       * cse.c (cse_insn): Pass NULL to fold_rtx when initially
+       folding the source of a SET.
+
 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        PR target/65932
index 58b8fc0313dcbfb2036054564746a7832ae52140..2665d9a2733cad7286b41a88753acfcf79be83f1 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4636,7 +4636,7 @@ cse_insn (rtx_insn *insn)
 
       /* Simplify and foldable subexpressions in SRC.  Then get the fully-
         simplified result, which may not necessarily be valid.  */
-      src_folded = fold_rtx (src, insn);
+      src_folded = fold_rtx (src, NULL);
 
 #if 0
       /* ??? This caused bad code to be generated for the m68k port with -O2.