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

--- Comment #10 from Yann Collet <yann.collet.73 at gmail dot com> ---
> there already is an aligned attribute for functions, variables and fields,

Sure, but none of them is related to aligning the start of an hot instruction
loop. Aligning the function instead looks like a poor proxy.

> there are also drawbacks to high alignment values

Yes. I could test that using -falign-loops=32 on a larger code base produces
drawbacks. Not just larger code size, worse speed speed.

This makes it all the more relevant to have the ability to select which loop
should be aligned, instead of relying on a unique program-wide compilation
flag.

Reply via email to