From 66c1f88e8eef0f6e64ecc081ce967b45745662f8 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 18 May 1992 05:34:36 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r1007 --- gcc/expmed.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2