[llvm] [VPlan] Add VPInstruction to unpack vector values to scalars. (PR #155670)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 12:54:52 PDT 2025


================
@@ -3381,7 +3390,9 @@ void VPlanTransforms::materializeBuildVectors(VPlan &Plan) {
        concat<VPBasicBlock *>(VPBBsOutsideLoopRegion, VPBBsInsideLoopRegion)) {
     for (VPRecipeBase &R : make_early_inc_range(*VPBB)) {
       auto *DefR = dyn_cast<VPRecipeWithIRFlags>(&R);
-      if (!DefR || !isa<VPReplicateRecipe, VPInstruction>(DefR))
+      if (!DefR)
+        continue;
+      if (!isa<VPReplicateRecipe, VPInstruction>(DefR))
----------------
fhahn wrote:

This was part of https://github.com/llvm/llvm-project/pull/155102, should be gone now

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


More information about the llvm-commits mailing list