[llvm] [DAG] isKnownNeverZero - add ISD::VECTOR_SHUFFLE handling (PR #187855)

Abdullah Sarkar via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 22 04:35:38 PDT 2026


================
@@ -6295,6 +6295,26 @@ bool SelectionDAG::isKnownNeverZero(SDValue Op, const APInt &DemandedElts,
     break;
   }
 
+  case ISD::VECTOR_SHUFFLE: {
+    assert(!Op.getValueType().isScalableVector());
----------------
absarkar wrote:

Yes, I believe this is what the other reviewer was alluding to. Thanks for the clarification; will update it!

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


More information about the llvm-commits mailing list