[llvm] b1fab4f - [LV][VPlan] Initialize the variable 'VPID' of the createEVLRecipe (#120926)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 17:23:26 PST 2024
Author: LiqinWeng
Date: 2024-12-23T09:23:22+08:00
New Revision: b1fab4f8491ae2c46ae77bcc21281296edfd458a
URL: https://github.com/llvm/llvm-project/commit/b1fab4f8491ae2c46ae77bcc21281296edfd458a
DIFF: https://github.com/llvm/llvm-project/commit/b1fab4f8491ae2c46ae77bcc21281296edfd458a.diff
LOG: [LV][VPlan] Initialize the variable 'VPID' of the createEVLRecipe (#120926)
Resolve the compilation error caused by the merge issue: #119510
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
Removed:
################################################################################
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