2016-02-24 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Feb 2016 12:03:27 +0000 (12:03 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Feb 2016 12:03:27 +0000 (12:03 +0000)
commit36d081ee93a4273b7fa6ef0ca3f8c7111951e1ed
tree5cd461c7bd1554cfa9a6aa0662f753d76e4bb68a
parent8ad32882625d8676e6cc06881ea4e7edc6725497
2016-02-24  Richard Biener  <rguenther@suse.de>

PR middle-end/68963
* tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
bogus check.
(record_nonwrapping_iv): Do not fall back to the low/high bound
for non-constant IV bases if the stmt is not always executed.

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

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