Skip to content

Commit 6df4b28

Browse files
committed
[VPlan] Remove VPPredInstPHIRecipe::useScalars
It uses the vector value of its operand if possible. Use the default definition in VPUser, which is false since onlyFirstLaneUsed is false. From the discussion at llvm#142594 (comment)
1 parent 4e44166 commit 6df4b28

File tree

1 file changed

+0
-7
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+0
-7
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,13 +2951,6 @@ class VPPredInstPHIRecipe : public VPSingleDefRecipe {
29512951
void print(raw_ostream &O, const Twine &Indent,
29522952
VPSlotTracker &SlotTracker) const override;
29532953
#endif
2954-
2955-
/// Returns true if the recipe uses scalars of operand \p Op.
2956-
bool usesScalars(const VPValue *Op) const override {
2957-
assert(is_contained(operands(), Op) &&
2958-
"Op must be an operand of the recipe");
2959-
return true;
2960-
}
29612954
};
29622955

29632956
/// A common base class for widening memory operations. An optional mask can be

0 commit comments

Comments
 (0)