We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ff597 commit f56cfacCopy full SHA for f56cfac
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2231,7 +2231,10 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe,
2231
/// Returns true, if the phi is part of an in-loop reduction.
2232
bool isInLoop() const { return IsInLoop; }
2233
2234
+ /// Returns true if the recipe only uses the first lane of operand \p Op.
2235
bool onlyFirstLaneUsed(const VPValue *Op) const override {
2236
+ assert(is_contained(operands(), Op) &&
2237
+ "Op must be an operand of the recipe");
2238
return isOrdered() || isInLoop();
2239
}
2240
};
0 commit comments