llvm-project
ad86f7dd - [AArch64] Use brk{a,b} for a lane mask from cttz.elts (#178674)

Commit
2 days ago
[AArch64] Use brk{a,b} for a lane mask from cttz.elts (#178674) cttz.elts is usually lowered (for SVE) to a brkb followed by a cntp. If we then want a mask based on that (say, for early exit masking) then we would use a whilelo from 0 to the result of cntp. But that just gives us the same mask as the initial brkb, so we can just remove the cntp and the whilelo. Brka matches the extra +1 in the pattern.
Author
Parents
Loading