This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC multiply and -Os


        PR optimize/7067
        * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
        small if optimizing for size.

Index: rs6000.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.218
diff -c -p -r1.218 rs6000.h
*** rs6000.h	2 Aug 2002 03:01:54 -0000	1.218
--- rs6000.h	2 Aug 2002 16:23:31 -0000
*************** do {									     \
*** 2332,2337 ****
--- 2332,2339 ----
  	    ? COSTS_N_INSNS (2)						\
  	    : COSTS_N_INSNS (1));					\
    case MULT:								\
+     if (optimize_size)							\
+       return COSTS_N_INSNS (2);						\
      switch (rs6000_cpu)							\
        {									\
        case PROCESSOR_RIOS1:						\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]