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 54c9ddd commit 1a34007Copy full SHA for 1a34007
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1762,15 +1762,11 @@ struct LLVM_ABI_FOR_TEST VPWidenSelectRecipe : public VPRecipeWithIRFlags,
1762
return getOperand(0);
1763
}
1764
1765
- bool isInvariantCond() const {
1766
- return getCond()->isDefinedOutsideLoopRegions();
1767
- }
1768
-
1769
/// Returns true if the recipe only uses the first lane of operand \p Op.
1770
bool usesFirstLaneOnly(const VPValue *Op) const override {
1771
assert(is_contained(operands(), Op) &&
1772
"Op must be an operand of the recipe");
1773
- return Op == getCond() && isInvariantCond();
+ return Op == getCond() && Op->isDefinedOutsideLoopRegions();
1774
1775
};
1776
0 commit comments