[llvm] [InstCombine] fold icmp of select with constants and invertible op (PR #147182)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 24 06:47:53 PDT 2025
dtcxzyw wrote:
> I haven't found a suitable implementation based on foldICmpEqualityWithOffset. A lot of judgment logic needs to be added to the shift class, and the original op and flag need to be kept to determine whether the simplifyBinOp result is available. Is this in line with expectations?
Sounds reasonable.
https://github.com/llvm/llvm-project/pull/147182
More information about the llvm-commits
mailing list