aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-05-18 05:34:36 +0000
committerRichard Stallman <rms@gnu.org>1992-05-18 05:34:36 +0000
commit66c1f88e8eef0f6e64ecc081ce967b45745662f8 (patch)
treedfd6ff33a6556ccdb551983b0c2876947cde4d2f
parent93e3ba4f76f03707689b847c6b96b1b17c14a5f5 (diff)
downloadgcc-66c1f88e8eef0f6e64ecc081ce967b45745662f8.zip
gcc-66c1f88e8eef0f6e64ecc081ce967b45745662f8.tar.gz
gcc-66c1f88e8eef0f6e64ecc081ce967b45745662f8.tar.bz2
*** empty log message ***
From-SVN: r1007
-rw-r--r--gcc/expmed.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index e7a9af1..2a02aa5 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;