Commit f468efc5 by Bin Cheng Committed by Bin Cheng

tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip unnecessary type conversion in op1.


	* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
	unnecessary type conversion in op1.

From-SVN: r227776
parent 23997c53
2015-09-15 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
unnecessary type conversion in op1.
2015-09-14 Segher Boessenkool <segher@kernel.crashing.org> 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
* shrink-wrap.c (requires_stack_frame_p): Fix formatting. * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
......
...@@ -3889,6 +3889,7 @@ get_shiftadd_cost (tree expr, machine_mode mode, comp_cost cost0, ...@@ -3889,6 +3889,7 @@ get_shiftadd_cost (tree expr, machine_mode mode, comp_cost cost0,
if (!(m >= 0 && m < maxm)) if (!(m >= 0 && m < maxm))
return false; return false;
STRIP_NOPS (op1);
mult_in_op1 = operand_equal_p (op1, mult, 0); mult_in_op1 = operand_equal_p (op1, mult, 0);
as_cost = add_cost (speed, mode) + shift_cost (speed, mode, m); as_cost = add_cost (speed, mode) + shift_cost (speed, mode, m);
......
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