Commit c61928d0 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[expmed][trivial] Fix comment about multiplying by T-1 and adding T.

	* expmed.c (synth_mult): Fix comment about multiplying by T-1 and
	adding T or multiplying by T+1 and subracting T.

From-SVN: r221588
parent fb136e35
2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* expmed.c (synth_mult): Fix comment about multiplying by T-1 and
adding T or multiplying by T+1 and subracting T.
2015-03-22 Jeff Law <law@redhat.com>
PR rtl-optimization/64317
......
......@@ -2611,7 +2611,7 @@ synth_mult (struct algorithm *alg_out, unsigned HOST_WIDE_INT t,
Thus we prefer addition in that case. */
&& t != 3))
{
/* T ends with ...111. Multiply by (T + 1) and subtract 1. */
/* T ends with ...111. Multiply by (T + 1) and subtract T. */
op_cost = add_cost (speed, mode);
new_limit.cost = best_cost.cost - op_cost;
......@@ -2630,7 +2630,7 @@ synth_mult (struct algorithm *alg_out, unsigned HOST_WIDE_INT t,
}
else
{
/* T ends with ...01 or ...011. Multiply by (T - 1) and add 1. */
/* T ends with ...01 or ...011. Multiply by (T - 1) and add T. */
op_cost = add_cost (speed, mode);
new_limit.cost = best_cost.cost - op_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