Commit c45af542 by Daniel Berlin Committed by Daniel Berlin

lambda-code.c (replace_uses_equiv_to_x_with_y): Check step and access function…

lambda-code.c (replace_uses_equiv_to_x_with_y): Check step and access function against chrec_dont_know.


2005-06-10  Daniel Berlin  <dberlin@dberlin.org>

	* lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
	and access function against chrec_dont_know.

From-SVN: r100831
parent 668c9ad1
2005-06-10 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
and access function against chrec_dont_know.
2005-06-10 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
slightly.
slightly.
(exit_phi_for_loop_p): New function.
(can_put_in_inner_loop): Ditto.
(can_convert_to_perfect_nest): Ditto.
......
......@@ -2182,9 +2182,9 @@ replace_uses_equiv_to_x_with_y (struct loop *loop, tree stmt, tree x,
access_fn = instantiate_parameters
(loop, analyze_scalar_evolution (loop, use));
if (access_fn != NULL_TREE)
if (access_fn != NULL_TREE && access_fn != chrec_dont_know)
step = evolution_part_in_loop_num (access_fn, loop->num);
if ((step && int_cst_value (step) == xstep)
if ((step && step != chrec_dont_know && int_cst_value (step) == xstep)
|| USE_FROM_PTR (use_p) == x)
SET_USE (use_p, y);
}
......
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