[llvm] [InstCombine] Simplify zext(sub(0, trunc(x))) -> and(sub(0, x), mask) (Fixes #165306) (PR #167101)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 8 01:39:26 PST 2025


https://github.com/dtcxzyw commented:

I'd expect this pattern to be handled in `CanEvaluateZExtd`.


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


More information about the llvm-commits mailing list