[llvm] [InstCombine] Fix #163110: Fold icmp (shl X, L), (add (shl Y, L), 1<<L) to icmp X, (Y + 1) (PR #165975)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 1 00:40:28 PDT 2025


https://github.com/dtcxzyw commented:

Can we perform this fold with `canEvaluateShifted` + `getShiftedValue`? You can use the known bits to estimate the number of bits to be shifted.


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


More information about the llvm-commits mailing list