Mettle

if-convertedA branch became branchless arithmetic

Reported by --explain after a verdict.

mettle explain if-converted

A short if in the body was rewritten as a select or a mask, so both sides are computed and one is chosen. That removes a mispredictable branch, and it is what lets a loop with a small conditional vectorize.

Related