[llvm] [LV][VPlan] Initialize the variable 'VPID' of the createEVLRecipe (PR #120926)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 22 16:45:45 PST 2024


https://github.com/LiqinWeng created https://github.com/llvm/llvm-project/pull/120926

Resolve the compilation error caused by the merge issue: #119510

>From bf16a26ee4d4749c2f5b4767d6eaee427c69d9bb Mon Sep 17 00:00:00 2001
From: LiqinWeng <liqin.weng at spacemit.com>
Date: Mon, 23 Dec 2024 08:44:33 +0800
Subject: [PATCH] [LV][VPlan] Initialize the variable 'VPID' of the
 createEVLRecipe

Resolve the compilation error caused by the merge issue: #119510
---
 llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 7fc02348347dfe..1689eadb5a5d7b 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1488,7 +1488,7 @@ static VPRecipeBase *createEVLRecipe(VPValue *HeaderMask,
       })
       .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
           [&](auto *CR) -> VPRecipeBase * {
-            Intrinsic::ID VPID;
+            Intrinsic::ID VPID = Intrinsic::not_intrinsic;
             if (auto *CallR = dyn_cast<VPWidenIntrinsicRecipe>(CR))
               VPID =
                   VPIntrinsic::getForIntrinsic(CallR->getVectorIntrinsicID());



More information about the llvm-commits mailing list