[llvm] [AArch64] Allow peephole to optimize AND + signed compare with 0 (PR #153608)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 07:49:00 PDT 2025


MacDue 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
```
?

https://github.com/llvm/llvm-project/pull/153608


More information about the llvm-commits mailing list