[llvm] [InstCombine] Fold `[l|a]shr iN (X-1)&~X, N-1 -> [z|s]ext(X==0)` (PR #107259)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 10:35:21 PDT 2024


goldsteinn wrote:

You could generalize this to any negation: https://alive2.llvm.org/ce/z/gzNi3b

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


More information about the llvm-commits mailing list