Tail folding
A vectorization technique that runs a loop's last, partial iteration inside the vector loop itself using masked instructions, instead of in a separate scalar remainder loop.
Loop over 1003 elements with a vector width of eight and three are left over. The classic answer is a scalar remainder loop after the vector loop, which means more code and an extra branch. Tail folding predicates every iteration instead: a mask says which lanes are valid, and on the final trip only three of the eight are switched on.
It only pays off on hardware where masking is cheap. Arm's SVE was designed around it, with the whilelt instruction computing the mask, and the RISC-V vector extension and AVX-512 can do the same. The cost is that the mask is carried through every iteration, including the 125 that didn't need it. LLVM therefore decides per loop, and -prefer-predicate-over-epilogue lets anyone who knows better overrule it.