https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103077
Bug ID: 103077 Summary: This flag is enabled by default at -O3 and by -ftree-vectorize Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: web Assignee: unassigned at gcc dot gnu.org Reporter: mathieu.malaterre at gmail dot com Target Milestone: --- The online documentation for `-ftree-vectorize` is a bit misleading. Reading it today: * https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html Gives: [...] -O2 turns on all optimization flags specified by -O1. It also turns on the following optimization flags: [...] -ftree-loop-vectorize [...] -ftree-slp-vectorize [...] But later in the page: [...] -ftree-loop-vectorize Perform loop vectorization on trees. This flag is enabled by default at -O3 and by -ftree-vectorize, -fprofile-use, and -fauto-profile. -ftree-slp-vectorize Perform basic block vectorization on trees. This flag is enabled by default at -O3 and by -ftree-vectorize, -fprofile-use, and -fauto-profile. [...] Please clarify documentation for -02 if it does turn on: -ftree-loop-vectorize & -ftree-slp-vectorize. Thanks