re PR tree-optimization/57326 (Piecewise folding of operations on PHI nodes)
authorRichard Biener <rguenther@suse.de>
Fri, 12 Aug 2016 12:58:15 +0000 (12:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 12 Aug 2016 12:58:15 +0000 (12:58 +0000)
commite373dd067e6f29cd333cddd741611f5979718c58
tree9f4ca179884496904f5a175a84357487283ad659
parent20d1af89b40d0a939a7afefeecf6652bd587e18b
re PR tree-optimization/57326 (Piecewise folding of operations on PHI nodes)

2016-08-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/57326
* tree-ssa-pre.c (fully_constant_expression): Handle simplification
returning an SSA name.
(phi_translate_1): When fully_constant_expression returns a NAME
make sure we have a leader for it.

* gcc.dg/tree-ssa/ssa-pre-32.c: New testcase.
* gcc.dg/tree-ssa/loadpre14.c: Adjust.
* gcc.dg/tree-ssa/pr35287.c: Likewise.
* gcc.target/i386/pr45685.c: Likewise.
* gcc.dg/tree-ssa/predcom-1.c: Disable PRE.
* gcc.dg/tree-ssa/predcom-2.c: Likewise.
* gcc.dg/tree-ssa/predcom-3.c: Likewise.
* gcc.dg/tree-ssa/ssa-sink-10.c: Likewise.
* gfortran.dg/pr34163.f90: Likewise.

From-SVN: r239414
12 files changed:
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c
gcc/testsuite/gcc.dg/tree-ssa/pr35287.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-1.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c
gcc/testsuite/gcc.dg/tree-ssa/predcom-3.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-32.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-10.c
gcc/testsuite/gcc.target/i386/pr45685.c
gcc/testsuite/gfortran.dg/pr34163.f90
gcc/tree-ssa-pre.c