[llvm] 0fa0a5d - [VPlan] Inline a using declaration in single use-site (NFC) (#222259)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 03:13:51 PDT 2026
Author: Ramkumar Ramachandra
Date: 2026-09-10T11:13:46+01:00
New Revision: 0fa0a5db4dd51db8c4ec7f0a68f48f6586e0a29a
URL: https://github.com/llvm/llvm-project/commit/0fa0a5db4dd51db8c4ec7f0a68f48f6586e0a29a
DIFF: https://github.com/llvm/llvm-project/commit/0fa0a5db4dd51db8c4ec7f0a68f48f6586e0a29a.diff
LOG: [VPlan] Inline a using declaration in single use-site (NFC) (#222259)
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index c0beb2e825e52..2bf8cdcc8ca79 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
@@ -948,7 +946,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