Skip to content

Commit 5b38fb5

Browse files
committed
[VPlan] Remove remaining references to VPScalarPHIRecipe (NFC).
VPScalarPHIRecipe has been replaced by VPInstructions with PHI opcodes. Strip remaining dead references to VPScalarPHIRecipe.
1 parent 368c7f7 commit 5b38fb5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ class VPSingleDefRecipe : public VPRecipeBase, public VPValue {
532532
case VPRecipeBase::VPWidenPointerInductionSC:
533533
case VPRecipeBase::VPReductionPHISC:
534534
case VPRecipeBase::VPScalarCastSC:
535-
case VPRecipeBase::VPScalarPHISC:
536535
case VPRecipeBase::VPPartialReductionSC:
537536
return true;
538537
case VPRecipeBase::VPBranchOnMaskSC:
@@ -2819,8 +2818,8 @@ class VPCanonicalIVPHIRecipe : public VPHeaderPHIRecipe {
28192818
VP_CLASSOF_IMPL(VPDef::VPCanonicalIVPHISC)
28202819

28212820
void execute(VPTransformState &State) override {
2822-
llvm_unreachable(
2823-
"cannot execute this recipe, should be replaced by VPScalarPHIRecipe");
2821+
llvm_unreachable("cannot execute this recipe, should be replaced by a "
2822+
"scalar phi recipe");
28242823
}
28252824

28262825
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
@@ -2905,8 +2904,8 @@ class VPEVLBasedIVPHIRecipe : public VPHeaderPHIRecipe {
29052904
VP_CLASSOF_IMPL(VPDef::VPEVLBasedIVPHISC)
29062905

29072906
void execute(VPTransformState &State) override {
2908-
llvm_unreachable(
2909-
"cannot execute this recipe, should be replaced by VPScalarPHIRecipe");
2907+
llvm_unreachable("cannot execute this recipe, should be replaced by a "
2908+
"scalar phi recipe");
29102909
}
29112910

29122911
/// Return the cost of this VPEVLBasedIVPHIRecipe.

llvm/lib/Transforms/Vectorize/VPlanValue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ class VPDef {
360360
VPFirstOrderRecurrencePHISC,
361361
VPWidenIntOrFpInductionSC,
362362
VPWidenPointerInductionSC,
363-
VPScalarPHISC,
364363
VPReductionPHISC,
365364
// END: SubclassID for recipes that inherit VPHeaderPHIRecipe
366365
// END: Phi-like recipes

0 commit comments

Comments
 (0)