Skip to content

Commit b9b058d

Browse files
committed
Update comment
1 parent 1a2ec3e commit b9b058d

File tree

1 file changed

+3
-2
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,7 @@ class VPWidenInductionRecipe : public VPHeaderPHIRecipe {
18511851
class VPWidenIntOrFpInductionRecipe : public VPWidenInductionRecipe {
18521852
TruncInst *Trunc;
18531853

1854+
// If this recipe is unrolled it will have 2 additional operands.
18541855
bool isUnrolled() const { return getNumOperands() == 5; }
18551856

18561857
public:
@@ -1901,8 +1902,8 @@ class VPWidenIntOrFpInductionRecipe : public VPWidenInductionRecipe {
19011902
const VPValue *getVFValue() const { return getOperand(2); }
19021903

19031904
VPValue *getSplatVFValue() {
1904-
// If the recipe has been unrolled (4 operands), return the VPValue for the
1905-
// induction increment.
1905+
// If the recipe has been unrolled return the VPValue for the induction
1906+
// increment.
19061907
return isUnrolled() ? getOperand(getNumOperands() - 2) : nullptr;
19071908
}
19081909

0 commit comments

Comments
 (0)