[Bug c/63450] Optimizing -O3 generates rep ret on an almost empty function

andi-gcc at firstfloor dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 3 14:29:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63450

Andi Kleen <andi-gcc at firstfloor dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andi-gcc at firstfloor dot org

--- Comment #2 from Andi Kleen <andi-gcc at firstfloor dot org> ---
This is a feature in -mtune=generic because it helps branch prediction in some
older AMD CPUs. If you're optimizing for Atom you'll get even more padding due
to other reasons. Optimizing e.g. for nehalem should avoid it.



More information about the Gcc-bugs mailing list