Skip to content

Commit ba9e503

Browse files
committed
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.
1 parent ab70f47 commit ba9e503

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
@@ -2946,13 +2946,6 @@ class VPPredInstPHIRecipe : public VPSingleDefRecipe {
29462946
void print(raw_ostream &O, const Twine &Indent,
29472947
VPSlotTracker &SlotTracker) const override;
29482948
#endif
2949-
2950-
/// Returns true if the recipe uses scalars of operand \p Op.
2951-
bool usesScalars(const VPValue *Op) const override {
2952-
assert(is_contained(operands(), Op) &&
2953-
"Op must be an operand of the recipe");
2954-
return true;
2955-
}
29562949
};
29572950

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

0 commit comments

Comments
 (0)