Commit e4d693c1 by Daniel Berlin Committed by Daniel Berlin

lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step is an…

lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step is an INTEGER_CST before calling int_cst_value.

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

	* lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
	is an INTEGER_CST before calling int_cst_value.

From-SVN: r100839
parent e8f92731
2005-06-11 Daniel Berlin <dberlin@dberlin.org>
* lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
is an INTEGER_CST before calling int_cst_value.
2005-06-10 Uros Bizjak <uros@kss-loka.si> 2005-06-10 Uros Bizjak <uros@kss-loka.si>
PR target/21981 PR target/21981
......
...@@ -2184,7 +2184,9 @@ replace_uses_equiv_to_x_with_y (struct loop *loop, tree stmt, tree x, ...@@ -2184,7 +2184,9 @@ replace_uses_equiv_to_x_with_y (struct loop *loop, tree stmt, tree x,
(loop, analyze_scalar_evolution (loop, use)); (loop, analyze_scalar_evolution (loop, use));
if (access_fn != NULL_TREE && access_fn != chrec_dont_know) if (access_fn != NULL_TREE && access_fn != chrec_dont_know)
step = evolution_part_in_loop_num (access_fn, loop->num); step = evolution_part_in_loop_num (access_fn, loop->num);
if ((step && step != chrec_dont_know && int_cst_value (step) == xstep) if ((step && step != chrec_dont_know
&& TREE_CODE (step) == INTEGER_CST
&& int_cst_value (step) == xstep)
|| USE_FROM_PTR (use_p) == x) || USE_FROM_PTR (use_p) == x)
SET_USE (use_p, y); 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