File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1851,6 +1851,7 @@ class VPWidenInductionRecipe : public VPHeaderPHIRecipe {
18511851class 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
18561857public:
@@ -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
You can’t perform that action at this time.
0 commit comments