tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
authorBin Cheng <bin.cheng@arm.com>
Fri, 15 Jul 2016 09:04:57 +0000 (09:04 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 15 Jul 2016 09:04:57 +0000 (09:04 +0000)
commit43aabfcfd4139e4c9e7b868199e09b97e66010bc
treebf2cd011c65849144b67a4d65d74e9dc61f556d8
parentafc89e58498ef6a275d4e018d26b6fca3940ef1e
tree-scalar-evolution.c (simple_iv_with_niters): New funcion.

* tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
(derive_simple_iv_with_niters): New function.
(simple_iv): Rewrite using simple_iv_with_niters.
* tree-scalar-evolution.h (simple_iv_with_niters): New decl.
* tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
function.
(number_of_iterations_exit): Rewrite using above function.
* tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
Decl.

gcc/testsuite
* gcc.dg/tree-ssa/loop-41.c: New test.

From-SVN: r238367
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-41.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c
gcc/tree-scalar-evolution.h
gcc/tree-ssa-loop-niter.c
gcc/tree-ssa-loop-niter.h