[llvm] [AArch64] Enable preferZeroCompareBranch for AArch64 when we don't have fused cmp+br (PR #150045)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 07:03:52 PDT 2025
AZero13 wrote:
> From #145803, do you have any benchmark results? Codesize was better when I tried it, but AFAIU it does mean the branch starts a cycles later. And as I mentioned in the other ticket, Arm has a lsrs that sets flags as it shifts, which AArch64 doesn't have.
Same number of instructions at best,
and lsrs + cbz doesn't use lsrs anyway but it's still a benefit even without this
https://github.com/llvm/llvm-project/pull/150045
More information about the llvm-commits
mailing list