Mettle

extremum-shapeRunning minimum/maximum the kernel just missed

Reported by --explain after a verdict.

mettle explain extremum-shape

if (a[i] > best) { best = a[i]; } is a shape the compiler vectorizes: it reads the diamond as the operator it is and emits vmaxps/vmaxpd (or vpmaxsd for int32), seeding every lane with the accumulator's incoming value. So the branch is not what stopped this loop. Something else did:

Related