re PR tree-optimization/57343 (wrong code on x86_64-linux at -Os and above)
authorRichard Biener <rguenther@suse.de>
Mon, 27 May 2013 13:02:24 +0000 (13:02 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 27 May 2013 13:02:24 +0000 (13:02 +0000)
commit5a892248232ee56f20a202b23049a344ab2c4517
tree9c4df07f019ab2916f49a727626c48c780323fc6
parentd1de852b6813728f736dffdd7f69944e26423305
re PR tree-optimization/57343 (wrong code on x86_64-linux at -Os and above)

2013-05-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/57343
* tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
(number_of_iterations_cond): Do not build the folded tree.

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

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