[llvm] [InstCombine] Fold selection between less than zero and one (PR #69961)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 03:37:21 PDT 2023


XChy wrote:

Just `A pred C ? (A << BW - 1) : 1` --> `Zext(A pred C ? A < 0 : 1)`. The latter form would be automatically folded somewhere else.

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


More information about the llvm-commits mailing list