Re: RFA: RL78: Fix multiply costs when optimizing for size
> OK to apply ? Ok. Thanks! > gcc/ChangeLog > 2015-08-05 Nick Clifton > > * config/rl78/rl78.c (rl78_rtx_costs): Treat MULT insns as cheap > if optimizing for size. > > Index: gcc/config/rl78/rl78.c > === > RCS f
RFA: RL78: Fix multiply costs when optimizing for size
Hi DJ, The patch below fixes a small problem with the RL78 backend. When optimizing for size it is better to use a slow multiply instruction than a faster, but larger, shift sequence. So the patch tweaks the rtx costs for MULT insns when speed is not a priority. Tested with no regress