]> git.ipfire.org Git - thirdparty/gcc.git/commit
doc: Document -O1 as the preferred level for large machine-generated code
authorSam James <sam@gentoo.org>
Tue, 23 Jul 2024 14:06:10 +0000 (15:06 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 25 Jul 2024 12:20:55 +0000 (14:20 +0200)
commit634eae5ec3f3af2c4f6221d3ed2cf78d7f5c47f0
treeffcf8b6a2521e9083a89948bedb234a7992bff2b
parent3f578dbac726d47b043b82606c47e5676c5d6a14
doc: Document -O1 as the preferred level for large machine-generated code

At -O1, the intention is that we compile things in a "reasonable" amount
of time (ditto memory use). In particular, we try to especially avoid
optimizations which scale poorly on pathological cases, as is the case
for large machine-generated code.

Recommend -O1 for large machine-generated code, as has been informally
done on bugs for a while now.

This applies (broadly speaking) for both large machine-generated functions
but also to a lesser extent repetitive small-but-still-not-tiny functions
from a generator program.

gcc/ChangeLog:
PR middle-end/114855
* doc/invoke.texi (Optimize options): Mention machine-generated
code for -O1.
gcc/doc/invoke.texi