Commit 50ad7db2 by Tom de Vries Committed by Tom de Vries

re PR middle-end/45098 (Missed induction variable optimization)

2011-05-22  Tom de Vries  <tom@codesourcery.com>

	PR target/45098
	* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
	for call to get_shiftadd_cost.

From-SVN: r174033
parent ef230b38
2011-05-22 Tom de Vries <tom@codesourcery.com>
PR target/45098
* tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fixed const test
for call to get_shiftadd_cost.
2011-05-22 Uros Bizjak <ubizjak@gmail.com> 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
PR target/49104 PR target/49104
......
...@@ -3685,7 +3685,7 @@ force_expr_to_var_cost (tree expr, bool speed) ...@@ -3685,7 +3685,7 @@ force_expr_to_var_cost (tree expr, bool speed)
mult = op0; mult = op0;
if (mult != NULL_TREE if (mult != NULL_TREE
&& TREE_CODE (TREE_OPERAND (mult, 1)) == INTEGER_CST && cst_and_fits_in_hwi (TREE_OPERAND (mult, 1))
&& get_shiftadd_cost (expr, mode, cost0, cost1, mult, speed, && get_shiftadd_cost (expr, mode, cost0, cost1, mult, speed,
&sa_cost)) &sa_cost))
return sa_cost; return sa_cost;
......
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