Skip to content

Commit b3e7e4b

Browse files
committed
[VPlan] Also specialize getNumIncoming for VPWidenPointerInd (NFC).
Similar to VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe only has a single incoming value and no backedge value. Currently NFC as there are no problematic uses at the moment.
1 parent 4a4f0ff commit b3e7e4b

File tree

1 file changed

+5
-0
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+5
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,11 @@ class VPWidenInductionRecipe : public VPHeaderPHIRecipe {
19231923
/// Update the step value of the recipe.
19241924
void setStepValue(VPValue *V) { setOperand(1, V); }
19251925

1926+
/// Returns the number of incoming values, also number of incoming blocks.
1927+
/// Note that at the moment, VPWidenPointerInductionRecipe only has a single
1928+
/// incoming value, its start value.
1929+
unsigned getNumIncoming() const override { return 1; }
1930+
19261931
PHINode *getPHINode() const { return cast<PHINode>(getUnderlyingValue()); }
19271932

19281933
/// Returns the induction descriptor for the recipe.

0 commit comments

Comments
 (0)