This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
specifying insn costs from attributes
- From: "Tomas Svensson" <idulus at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 11 Oct 2007 10:01:42 +0200
- Subject: specifying insn costs from attributes
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 thing? Is it better to use the "length" attribute for this?