Skip to content

Commit 87f837c

Browse files
committed
[VPlan] Remove unneeded classof with VPHeaderRecipe args (NFC).
The extra classof implementation is not needed any longer.
1 parent 9f879de commit 87f837c

File tree

1 file changed

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

1 file changed

+0
-20
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,10 +1981,6 @@ struct VPFirstOrderRecurrencePHIRecipe : public VPHeaderPHIRecipe {
19811981

19821982
VP_CLASSOF_IMPL(VPDef::VPFirstOrderRecurrencePHISC)
19831983

1984-
static inline bool classof(const VPHeaderPHIRecipe *R) {
1985-
return R->getVPDefID() == VPDef::VPFirstOrderRecurrencePHISC;
1986-
}
1987-
19881984
VPFirstOrderRecurrencePHIRecipe *clone() override {
19891985
return new VPFirstOrderRecurrencePHIRecipe(
19901986
cast<PHINode>(getUnderlyingInstr()), *getOperand(0));
@@ -2052,10 +2048,6 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe,
20522048

20532049
VP_CLASSOF_IMPL(VPDef::VPReductionPHISC)
20542050

2055-
static inline bool classof(const VPHeaderPHIRecipe *R) {
2056-
return R->getVPDefID() == VPDef::VPReductionPHISC;
2057-
}
2058-
20592051
/// Generate the phi/select nodes.
20602052
void execute(VPTransformState &State) override;
20612053

@@ -2874,10 +2866,6 @@ class VPCanonicalIVPHIRecipe : public VPHeaderPHIRecipe {
28742866

28752867
VP_CLASSOF_IMPL(VPDef::VPCanonicalIVPHISC)
28762868

2877-
static inline bool classof(const VPHeaderPHIRecipe *D) {
2878-
return D->getVPDefID() == VPDef::VPCanonicalIVPHISC;
2879-
}
2880-
28812869
void execute(VPTransformState &State) override {
28822870
llvm_unreachable(
28832871
"cannot execute this recipe, should be replaced by VPScalarPHIRecipe");
@@ -2937,10 +2925,6 @@ class VPActiveLaneMaskPHIRecipe : public VPHeaderPHIRecipe {
29372925

29382926
VP_CLASSOF_IMPL(VPDef::VPActiveLaneMaskPHISC)
29392927

2940-
static inline bool classof(const VPHeaderPHIRecipe *D) {
2941-
return D->getVPDefID() == VPDef::VPActiveLaneMaskPHISC;
2942-
}
2943-
29442928
/// Generate the active lane mask phi of the vector loop.
29452929
void execute(VPTransformState &State) override;
29462930

@@ -2968,10 +2952,6 @@ class VPEVLBasedIVPHIRecipe : public VPHeaderPHIRecipe {
29682952

29692953
VP_CLASSOF_IMPL(VPDef::VPEVLBasedIVPHISC)
29702954

2971-
static inline bool classof(const VPHeaderPHIRecipe *D) {
2972-
return D->getVPDefID() == VPDef::VPEVLBasedIVPHISC;
2973-
}
2974-
29752955
void execute(VPTransformState &State) override {
29762956
llvm_unreachable(
29772957
"cannot execute this recipe, should be replaced by VPScalarPHIRecipe");

0 commit comments

Comments
 (0)