[llvm] [AArch64] Allow peephole to optimize AND + signed compare with 0 (PR #153608)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 08:11:57 PDT 2025
AZero13 wrote:
> I think the utility of your change would be more apparent if you pre-comitted some tests. IIUC this is folding things like:
>
> ```
>
> and w8, w9, w8
>
> cmp w8, #0
>
> ```
>
> to
>
> ```
>
> tst w9, w8
>
> ```
>
> ?
Yes exactly that's the point
https://github.com/llvm/llvm-project/pull/153608
More information about the llvm-commits
mailing list