From: Kyrylo Tkachov Date: Thu, 4 Feb 2016 09:56:13 +0000 (+0000) Subject: [cse][3/4] Don't overwrite original rtx when folding source of set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=625d55afc196456f1d04819c07a3c59806a2401e;p=gcc.git [cse][3/4] Don't overwrite original rtx when folding source of set 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5936b78d11..3e2f22af092 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-02-04 Kyrylo Tkachov + + 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 PR target/65932 diff --git a/gcc/cse.c b/gcc/cse.c index 58b8fc0313d..2665d9a2733 100644 --- 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.