[llvm] [InstCombine] Fold smax(smax(x<<C1, x+C2), C3) -> smax(x<<C1, C3) (PR #199163)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 09:06:49 PDT 2026


https://github.com/dtcxzyw commented:

I don't have any idea how to generalize this pattern... It looks like we are trying to prove `X << C1` is always greater than `X + C2` if both of them are greater than `C3`.


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


More information about the llvm-commits mailing list