[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:46:20 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: LiqinWeng (LiqinWeng)

<details>
<summary>Changes</summary>

Resolve the compilation error caused by the merge issue: #<!-- -->119510

---
Full diff: https://github.com/llvm/llvm-project/pull/120926.diff


1 Files Affected:

- (modified) llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp (+1-1) 


``````````diff
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());

``````````

</details>


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


More information about the llvm-commits mailing list