This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
insn length attribute and code size optimization
- From: fanqifei <fanqifei at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 3 Feb 2010 21:22:13 +0800
- Subject: insn length attribute and code size optimization
- Reply-to: fanqifei at gmail dot com
According to the internal manual, insn length attribute can be used to
to calculate the length of emitted code chunks when verifying branch
distances.
Can it be used in code size optimization?
I may change TARGET_RTX_COSTS in my gcc port and return costs
regarding the ins lengths. I can see code snippets for this purpose
in i386/i386.c, however, the insn sizes are hard coded in array
size_cost.
Are there any other places where the insn length impacts insn selection?
--
-Qifei Fan