[llvm] [InstCombine] Canonicalise packed-integer-selecting shifts (PR #162147)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 01:09:15 PDT 2025
================
@@ -800,6 +800,48 @@ Value *InstCombinerImpl::SimplifyDemandedUseBits(Instruction *I,
Known.Zero.setHighBits(ShiftAmt); // high bits known zero.
} else {
llvm::computeKnownBits(I, Known, Q, Depth);
----------------
dtcxzyw wrote:
The known bits are unused if it is simplified. We should move this behind the new folding logic.
https://github.com/llvm/llvm-project/pull/162147
More information about the llvm-commits
mailing list