summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-02 16:25:43 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-02 16:25:43 +0000
commit01540a73c79099cdfd45a090628c1652f5c8defe (patch)
treec64665d76b37c46abbbd56979fdb71448778196f /gcc/config/rs6000
parent91a366503b1b60d403e3670acf323a4337e123cc (diff)
downloadgcc-01540a73c79099cdfd45a090628c1652f5c8defe.tar.gz
PR optimize/7067
* config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT small if optimizing for size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55991 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/rs6000.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 647e5b045fb..35e9f098cc6 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -2332,6 +2332,8 @@ do { \
? COSTS_N_INSNS (2) \
: COSTS_N_INSNS (1)); \
case MULT: \
+ if (optimize_size) \
+ return COSTS_N_INSNS (2); \
switch (rs6000_cpu) \
{ \
case PROCESSOR_RIOS1: \