re PR middle-end/53031 (gcc.dg/tree-ssa/vrp54.c scan-tree-dump-not vrp1 "link_error")

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
This commit is contained in:
Richard Guenther 2012-04-19 13:21:44 +00:00 committed by Richard Biener
parent 80f2435130
commit 7c98ec605d
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -3420,7 +3420,9 @@ adjust_range_with_scev (value_range_t *vr, struct loop *loop,
{
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;