From c61928d098559fedd9032e4292740ba020103629 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Mon, 23 Mar 2015 09:16:49 +0000 Subject: [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 --- gcc/expmed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/expmed.c') diff --git a/gcc/expmed.c b/gcc/expmed.c index 8d4f964..e0b2619 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -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; -- cgit v1.1