https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118298
Bug ID: 118298 Summary: Partial unroll request for outer loop with #pragma GCC unroll is silently ignored Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: tiborgyri at gmail dot com CC: tiborgyri at gmail dot com Target Milestone: --- See: https://godbolt.org/z/Mc9fsW4s5 The outer loop in this example has a trip count of 6, and I am asking GCC to unroll it by a factor of 2. GCC silently ignores the pragma, while clang does what I expect and unrolls it to trip count of 3. GCC should also honor this pragma, or if it cannot, it should at least leave a note in the optimization report or stdout.