------- Comment #3 from gunnar at greyhound-data dot com  2008-05-29 12:50 
-------
Created an attachment (id=15699)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15699&action=view)
Prefer 4 byte long LEA over 6 byte long ADD.L

Please include the attached patch for GCC.

The added patch has changed the case statement to prefer the 4 byte long lea
over the 6 byte long add.l for immediate sub/add instructions to address
registers with an immediate operant size of 16bit max. 

LEA is optimized for pipelining (with destination forwarding) and is shorter
than ADD.L


Regards
Gunnar von Boehn


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36134

Reply via email to