[patch] MIPS: Size optimization costs.

Eric Christopher echristo@apple.com
Mon Nov 6 19:15:00 GMT 2006


>
> Too much indentation: the COST_N_INSNS() lines are too indented.
> OK otherwise.
>
> I'm not a great fan of the current MIPS cost model, not least because
> it fails to take things like -mhard-float and -msoft-float into  
> account.
> However, your patch is a strict improvement on what we have now.
>

FWIW a simple improvement on this would be to bias the cost count in
favor of the cheaper instructions, i.e. multiplication over division  
using
something like CONST_N_INSNS(1) + 1.

-eric



More information about the Gcc-patches mailing list