Multiplications on Pentium 4

Jan Hubicka jh@suse.cz
Sat Sep 8 09:17:00 GMT 2001


> It's amazing how poor the scaling lea's are on the Pentium 4, probably they
> should never be generated.
They are no worse than shifts - actually LEA is simply translated to trivial
operations.
It is amazing how bad shifts are :) but replacing them by ADDs is not always
solution due to trace cache misses.

Honza
> 
> (at least you could take care of this by simply removing them :-)



More information about the Gcc mailing list