]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/85284 (Loop miscompilation starting with r238367)
authorRichard Biener <rguenther@suse.de>
Mon, 9 Apr 2018 13:27:33 +0000 (13:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 Apr 2018 13:27:33 +0000 (13:27 +0000)
commit46e58e180d6ab1fa37acc96f0b8cbf569bbf4105
tree0e7725d434692876e63909c136cabd1e84fc7237
parentf04fd9038ee58325748fea2f085d43eddcdb37ad
re PR tree-optimization/85284 (Loop miscompilation starting with r238367)

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.

From-SVN: r259234
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr85284.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c