[llvm] [AArch64] Report icmp as free if it can be folded into ands (PR #143286)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 01:53:37 PDT 2025


https://github.com/davemgreen commented:

Hi - I think this sounds OK, some of the cases will be canonicalized by the mid-end to compare against 0. Out of interest do you have some motivating example you are trying to optimize, or is this a general improvement as you were looking at the backend patterns?

Can you add some extra tests for each of the cases?

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


More information about the llvm-commits mailing list