From: Roger Sayle Date: Thu, 24 Jun 2004 20:38:59 +0000 (+0000) Subject: re PR middle-end/15239 (suboptimal mult-by-const expansion cost limit) X-Git-Tag: releases/gcc-4.0.0~7389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79066482014cb25e9743b44622fb304b6633b24b;p=thirdparty%2Fgcc.git re PR middle-end/15239 (suboptimal mult-by-const expansion cost limit) PR middle-end/15239 * expmed.c (expand_mult): Remove artificial restriction on the maximum cost of a synthetic multiplication sequence. From-SVN: r83610 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a08ab3f5d6ab..d0c4473c01b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-24 Roger Sayle + + PR middle-end/15239 + * expmed.c (expand_mult): Remove artificial restriction on the + maximum cost of a synthetic multiplication sequence. + 2004-06-24 Eric Christopher * combine.c (distribute_notes): Don't delete sets to diff --git a/gcc/expmed.c b/gcc/expmed.c index ae76695a133b..c86250364256 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2664,7 +2664,6 @@ expand_mult (enum machine_mode mode, rtx op0, rtx op1, rtx target, && (unsignedp || !flag_trapv)) { int mult_cost = rtx_cost (gen_rtx_MULT (mode, op0, op1), SET); - mult_cost = MIN (12 * add_cost[mode], mult_cost); if (choose_mult_variant (mode, INTVAL (const_op1), &algorithm, &variant, mult_cost))