re PR tree-optimization/78343 (Loop is not eliminated)
authorRichard Biener <rguenther@suse.de>
Fri, 25 Nov 2016 10:22:57 +0000 (10:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 25 Nov 2016 10:22:57 +0000 (10:22 +0000)
commit59ec925b1199f9777d0d10be46251516f774b214
tree55f77a216d9ec3e9a34f6aafdd73a26855b05273
parent4741b062d65c4af37eba4b1ba5bba11bc95256e1
re PR tree-optimization/78343 (Loop is not eliminated)

2016-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78343
* passes.def: Add CD-DCE pass after loop splitting.
* tree-ssa-dce.c (find_obviously_necessary_stmts): Move
SCEV init/finalize ...
(perform_tree_ssa_dce): ... here.  Deal with being
executed inside the loop pipeline in aggressive mode.

* gcc.dg/tree-ssa/sccp-2.c: New testcase.
* gcc.dg/autopar/uns-outer-6.c: Adjust.
* gcc.dg/tree-ssa/20030808-1.c: Likewise.
* gcc.dg/tree-ssa/20040305-1.c: Likewise.
* gcc.dg/vect/pr38529.c: Likewise.

From-SVN: r242872
gcc/ChangeLog
gcc/passes.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/autopar/uns-outer-6.c
gcc/testsuite/gcc.dg/tree-ssa/20030808-1.c
gcc/testsuite/gcc.dg/tree-ssa/20040305-1.c
gcc/testsuite/gcc.dg/tree-ssa/sccp-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr38529.c
gcc/tree-ssa-dce.c