[llvm] [DAG] isKnownNeverZero - add DemandedElts argument (PR #182679)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 22 10:31:20 PST 2026


================
@@ -6164,14 +6185,30 @@ bool SelectionDAG::isKnownNeverZero(SDValue Op, unsigned Depth) const {
   default:
     break;
 
+  case ISD::BUILD_VECTOR:
+    // Are all operands of a build vector constant powers of two or zero?
----------------
RKSimon wrote:

Incorrect comment?

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


More information about the llvm-commits mailing list