ARCH_rtx_costs

Shinpei Kato shinny@j02.itscom.net
Fri Oct 8 11:47:00 GMT 2004


> /* Return the right cost to give to an operation
>    to make the cost of the corresponding register-to-register instruction
>    N times that of a fast register-to-register instruction.  */
> #define COSTS_N_INSNS(N) ((N) * 4)
> 
> so COSTS_N_INSNS(1) is the cost of a reg-reg move instruction, and
> COSTS_N_INSNS(X) is the cost of X is relative to that.

I see, I should have looked at the source before, sorry.
Thank you for your help.

- Shinpei



More information about the Gcc mailing list