[llvm] [VPlan] Inline a using declaration in single use-site (NFC) (PR #222259)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 00:37:20 PDT 2026
https://github.com/artagnon created https://github.com/llvm/llvm-project/pull/222259
None
>From 6cd94a58559ea21492380c1579ad95cd7c179e12 Mon Sep 17 00:00:00 2001
From: Ramkumar Ramachandra <artagnon at tenstorrent.com>
Date: Wed, 9 Sep 2026 08:35:02 +0100
Subject: [PATCH] [VPlan] Inline a using declaration in single use-site (NFC)
---
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index 02ea01880ff4a..b080aae388503 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -44,8 +44,6 @@
using namespace llvm;
using namespace llvm::VPlanPatternMatch;
-using VectorParts = SmallVector<Value *, 2>;
-
#define LV_NAME "loop-vectorize"
#define DEBUG_TYPE LV_NAME
@@ -946,7 +944,7 @@ Value *VPInstruction::generate(VPTransformState &State) {
// The recipe may have multiple operands to be reduced together.
unsigned NumOperandsToReduce = getNumOperands();
- VectorParts RdxParts(NumOperandsToReduce);
+ SmallVector<Value *, 2> RdxParts(NumOperandsToReduce);
for (unsigned Part = 0; Part < NumOperandsToReduce; ++Part)
RdxParts[Part] = State.get(getOperand(Part), IsInLoop);
More information about the llvm-commits
mailing list