[llvm] 220294c - [VPlan] Remove VPWidenInductionRecipe::getStartValue (NFC). (#222015)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 12:47:13 PDT 2026
Author: Florian Hahn
Date: 2026-09-08T19:47:07Z
New Revision: 220294cbf949a487daed4739701d82dfee4054f3
URL: https://github.com/llvm/llvm-project/commit/220294cbf949a487daed4739701d82dfee4054f3
DIFF: https://github.com/llvm/llvm-project/commit/220294cbf949a487daed4739701d82dfee4054f3.diff
LOG: [VPlan] Remove VPWidenInductionRecipe::getStartValue (NFC). (#222015)
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.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
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