https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111211
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Lehua Ding from comment #3) > (In reply to Richard Biener from comment #2) > > We diagnose this after unrolling, so the difference is whether we unroll or > > not. > > But based on the assembly code it looks like both are unrolled. > > foo: > nop > nop > nop > nop > nop > nop > nop > xor eax, eax > ret > foo2: > nop > nop > nop > nop > nop > nop > nop > nop > xor eax, eax > ret At different times in the pipeline and the warning happens before the second unrollinb