[llvm] [VPlan] Constant-fold ActiveLaneMask intrinsics (PR #208852)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 02:13:06 PDT 2026


================
@@ -4466,9 +4466,12 @@ static Constant *ConstantFoldFixedVectorCall(
 
     for (unsigned I = 0; I < NumElements; ++I) {
       ConstantInt *Elt0 =
-          cast<ConstantInt>(Operands[0]->getAggregateElement(I));
+          dyn_cast<ConstantInt>(Operands[0]->getAggregateElement(I));
----------------
david-arm wrote:

Thanks!

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


More information about the llvm-commits mailing list