2012-04-19 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53031
* tree-vrp.c (adjust_range_with_scev): Revert back to
using max_loop_iterations.
From-SVN: r186592
+2012-04-19 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/53031
+ * tree-vrp.c (adjust_range_with_scev): Revert back to
+ using max_loop_iterations.
+
2012-04-19 Michael Matz <matz@suse.de>
* diagnostic.c (emit_diagnostic): Move va_end call after user
{
double_int nit;
- if (max_stmt_executions (loop, &nit))
+ /* We are only entering here for loop header PHI nodes, so using
+ the number of latch executions is the correct thing to use. */
+ if (max_loop_iterations (loop, &nit))
{
value_range_t maxvr = { VR_UNDEFINED, NULL_TREE, NULL_TREE, NULL };
double_int dtmp;