Commit a95740b3 by Richard Guenther Committed by Richard Biener

tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis to loop PHI nodes.

2010-02-17  Richard Guenther  <rguenther@suse.de>

	* tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
	to loop PHI nodes.

From-SVN: r156825
parent 68326806
2010-02-17 Richard Guenther <rguenther@suse.de>
* tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
to loop PHI nodes.
2010-02-17 Jakub Jelinek <jakub@redhat.com>
PR debug/42918
......
......@@ -6318,11 +6318,10 @@ vrp_visit_phi_node (gimple phi)
}
/* If this is a loop PHI node SCEV may known more about its
value-range.
??? Identify loop PHI nodes properly. */
value-range. */
if (current_loops
&& (l = loop_containing_stmt (phi))
&& loop_outer (l))
&& l->header == gimple_bb (phi))
adjust_range_with_scev (&vr_result, l, phi, lhs);
if (vr_result.type == VR_VARYING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment