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 {
1851
1851
class VPWidenIntOrFpInductionRecipe : public VPWidenInductionRecipe {
1852
1852
TruncInst *Trunc;
1853
1853
1854
+ // If this recipe is unrolled it will have 2 additional operands.
1854
1855
bool isUnrolled () const { return getNumOperands () == 5 ; }
1855
1856
1856
1857
public:
@@ -1901,8 +1902,8 @@ class VPWidenIntOrFpInductionRecipe : public VPWidenInductionRecipe {
1901
1902
const VPValue *getVFValue () const { return getOperand (2 ); }
1902
1903
1903
1904
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.
1906
1907
return isUnrolled () ? getOperand (getNumOperands () - 2 ) : nullptr ;
1907
1908
}
1908
1909
You can’t perform that action at this time.
0 commit comments