]> git.baikalelectronics.ru Git - kernel.git/commit
Tell the world we gave up on pushing CC_OPTIMIZE_FOR_SIZE
authorKirill Smelkov <kirr@mns.spb.ru>
Fri, 2 Nov 2012 11:41:01 +0000 (15:41 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Jan 2013 20:42:57 +0000 (12:42 -0800)
commitfe0c386219196d38f75c4da27f51d6eba18e26fc
tree7198833c5bc3e7aac4b2a23282c2c4a09eae85d2
parent8d9872b6aba925f6afc2d024ce401d1b887bd4bc
Tell the world we gave up on pushing CC_OPTIMIZE_FOR_SIZE

In commit 2eb465047f77 ("Give up on pushing CC_OPTIMIZE_FOR_SIZE") we
already changed the actual default value, but the help-text still
suggested 'y'. Fix the help text too, for all the same reasons.

Sadly, -Os keeps on generating some very suboptimal code for certain
cases, to the point where any I$ miss upside is swamped by the downside.
The main ones are:

 - using "rep movsb" for memcpy, even on CPU's where that is
   horrendously bad for performance.

 - not honoring branch prediction information, so any I$ footprint you
   win from smaller code, you lose from less code density in the I$.

 - using divide instructions when that is very expensive.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/Kconfig