re PR tree-optimization/68529 (scev failed for while(i--))
authorBin Cheng <bin.cheng@arm.com>
Tue, 1 Dec 2015 05:22:16 +0000 (05:22 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 1 Dec 2015 05:22:16 +0000 (05:22 +0000)
commitcdf66caf4fa836a4398f74faceb373d84e019bb7
treeb0feb2d5b46ce5a54088544843561463d10ac4f5
parent6ea98dee208bef31e56452969bfa7e85d0dd3c36
re PR tree-optimization/68529 (scev failed for while(i--))

PR tree-optimization/68529
* tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
Compute no-overflow information for control iv.
(number_of_iterations_lt, number_of_iterations_le): Add new param.
(number_of_iterations_cond): Pass new argument to above functions.

PR tree-optimization/68529
* gcc.dg/tree-ssa/pr68529-1.c: New test.
* gcc.dg/tree-ssa/pr68529-2.c: New test.
* gcc.dg/tree-ssa/pr68529-3.c: New test.

From-SVN: r231097
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr68529-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr68529-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr68529-3.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c