From: Richard Stallman Date: Mon, 18 May 1992 05:34:36 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66c1f88e8eef0f6e64ecc081ce967b45745662f8;p=gcc.git *** empty log message *** From-SVN: r1007 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index e7a9af1a013..2a02aa58f6a 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1961,7 +1961,11 @@ expand_mult (mode, op0, op1, target, unsignedp) const_op1 = gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_LOW (op1)); } - if (GET_CODE (const_op1) == CONST_INT && ! mult_is_very_cheap && optimize) + /* We used to test optimize here, on the grounds that it's better to + produce a smaller program when -O is not used. + But this causes such a terrible slowdown sometimes + that it seems better to use synth_mult always. */ + if (GET_CODE (const_op1) == CONST_INT && ! mult_is_very_cheap) { struct algorithm alg; struct algorithm neg_alg;