Re: specifying insn costs from attributes

2007-10-11 Thread Ramana Radhakrishnan
On 10/11/07, Tomas Svensson <[EMAIL PROTECTED]> wrote: > In the .md-file of my port, I have set an attribute "size" of every > insn, giving its size (obviously), in bytes. Is there any way I can use the > value of this attribute to determine the cost (in e.g. TARGET_RTX_COSTS) > when optimizing for

specifying insn costs from attributes

2007-10-11 Thread Tomas Svensson
In the .md-file of my port, I have set an attribute "size" of every insn, giving its size (obviously), in bytes. Is there any way I can use the value of this attribute to determine the cost (in e.g. TARGET_RTX_COSTS) when optimizing for size? Or is there some other smart way of achieving the same t