[llvm] [DAG] Add ISD::VECTOR_COMPRESS handling in computeKnownBits/ComputeNumSignBits (PR #159692)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 21 08:20:54 PDT 2025
================
@@ -3480,6 +3480,20 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
break;
}
break;
+ case ISD::VECTOR_COMPRESS: {
+ SDValue Vec = Op.getOperand(0);
+ SDValue PassThru = Op.getOperand(2);
+
+ Known.Zero.setAllBits();
+ Known.One.setAllBits();
----------------
RKSimon wrote:
The setAllBits calls can now be removed
https://github.com/llvm/llvm-project/pull/159692
More information about the llvm-commits
mailing list