[llvm] [VPlan] Remove VPWidenInductionRecipe::getStartValue (NFC). (PR #222015)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 12:09:28 PDT 2026
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/222015
>From dd67cdf57750eb2af7ff142696852b0c7cf04cc1 Mon Sep 17 00:00:00 2001
From: Florian Hahn <flo at fhahn.com>
Date: Thu, 3 Sep 2026 14:35:50 +0100
Subject: [PATCH] [VPlan] Remove VPWidenInductionRecipe::getStartValue (NFC).
It now shadows VPHeaderPHIRecipe::getStartValue, which returns the same VPValue
and, as the base class accessor, also has a non-const overload. Narrowing the
return type to VPIRValue * was its only purpose.
---
llvm/lib/Transforms/Vectorize/VPlan.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index e9f18506af7c2..f37a750a4d516 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2598,9 +2598,6 @@ class VPWidenInductionRecipe : public VPHeaderPHIRecipe {
void execute(VPTransformState &State) override = 0;
- /// Returns the start value of the induction.
- VPValue *getStartValue() const { return getOperand(0); }
-
/// Returns the step value of the induction.
VPValue *getStepValue() { return getOperand(1); }
const VPValue *getStepValue() const { return getOperand(1); }
More information about the llvm-commits
mailing list