2018-04-09 Richard Biener <rguenther@suse.de>
commit03d52952b8ed93b676222f957c1a27a24cf3ef71
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 13:27:33 +0000 (9 13:27 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Apr 2018 13:27:33 +0000 (9 13:27 +0000)
tree0e7725d434692876e63909c136cabd1e84fc7237
parente163ceb59eafbf982bd3b5dd6434bbf10b8a9ec0
2018-04-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85284
* tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
Only use the niter constraining form of simple_iv when the exit
is always executed.

* gcc.dg/torture/pr85284.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259234 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr85284.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c