[llvm] Allow folding icmp eq (add X, C2), C when there is more than one-use when we can compute the range (PR #144566)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 17:46:41 PDT 2025


AZero13 wrote:

But in all honesty, I think your solution of what we have now is good for now. I will work on a proper solution. but the side effects of your solution are not that bad. at worst they may result in AArch64 having an extra cmp because it won't emit branch-if-zero instructions sometimes but I will just address those separately since I feel like the codegen lowering should address this anyway. 

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


More information about the llvm-commits mailing list