]> gcc.gnu.org Git - gcc.git/commitdiff
re PR rtl-optimization/7067 (-Os with -mcpu=powerpc optimizes for speed (?) instead...
authorDavid Edelsohn <edelsohn@gnu.org>
Fri, 2 Aug 2002 16:25:43 +0000 (16:25 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 2 Aug 2002 16:25:43 +0000 (12:25 -0400)
        PR optimize/7067
        * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
        small if optimizing for size.

From-SVN: r55991

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index c2cd7cf78f4c65b9215350f164007c39a5102be0..66faa85dc0ff588e2d96c9243534f8a8cbd475bb 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-02  David Edelsohn  <edelsohn@gnu.org>
+
+       PR optimize/7067
+       * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
+       small if optimizing for size.
+
 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
 
        * configure.in (FORBUILD): Use $build_alias.
index 647e5b045fb5261ed9c1baebe279f11db111a2f9..35e9f098cc68de1c896034c21e62d398c871955d 100644 (file)
@@ -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:                                            \
This page took 0.105579 seconds and 5 git commands to generate.