Performance degradation on g++ 4.6
Benjamin Redelings I
benjamin.redelings@nescent.org
Sat Jul 30 14:57:00 GMT 2011
Hi Oleg,
I had some performance degradation with 4.6 as well.
However, I was able to cure it by using -finline-limit=800 or 1000 I
think. However, this lead to a code size increase. Were the old
higher-performance binaries larger?
IIRC, setting finline-limit=n actually sets two params to n/2, but I
think you may only need to change 1 to get the old performance back.
--param max-inline-insns-single defaults to 450, but --param
max-inline-insns-auto defaults to 90. Perhaps you can get the old
performance back by adjusting just one of these two parameters, or by
setting them to different values, instead of the same value, as would be
achieved by -finline-limit.
-BenRI
More information about the Gcc
mailing list