Skip to content

Commit ba7e273

Browse files
committed
[VPlan] Use VP_CLASSOF_IMPL in VPWidenRecipe. (NFC)
1 parent 60afce2 commit ba7e273

File tree

1 file changed

+1
-8
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -1111,14 +1111,7 @@ class VPWidenRecipe : public VPRecipeWithIRFlags {
11111111
return R;
11121112
}
11131113

1114-
static inline bool classof(const VPRecipeBase *R) {
1115-
return R->getVPDefID() == VPRecipeBase::VPWidenSC;
1116-
}
1117-
1118-
static inline bool classof(const VPUser *U) {
1119-
auto *R = dyn_cast<VPRecipeBase>(U);
1120-
return R && classof(R);
1121-
}
1114+
VP_CLASSOF_IMPL(VPDef::VPWidenSC)
11221115

11231116
/// Produce a widened instruction using the opcode and operands of the recipe,
11241117
/// processing State.VF elements.

0 commit comments

Comments
 (0)