diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index e6635e788e1848..01c2894f6b8013 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -1242,7 +1242,7 @@ class VPPredInstPHIRecipe : public VPRecipeBase, public VPUser { /// nodes after merging back from a Branch-on-Mask. VPPredInstPHIRecipe(VPValue *PredV) : VPRecipeBase(VPPredInstPHISC), VPUser(PredV) { - new VPValue(VPValue::VPValueSC, PredV->getUnderlyingValue(), this); + new VPValue(PredV->getUnderlyingValue(), this); } ~VPPredInstPHIRecipe() override = default; diff --git a/llvm/lib/Transforms/Vectorize/VPlanValue.h b/llvm/lib/Transforms/Vectorize/VPlanValue.h index 1ebe1f8204a56d..5bafe220785ddd 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanValue.h +++ b/llvm/lib/Transforms/Vectorize/VPlanValue.h @@ -35,7 +35,6 @@ class VPDef; class VPSlotTracker; class VPUser; class VPRecipeBase; -class VPPredInstPHIRecipe; class VPWidenMemoryInstructionRecipe; // This is the base class of the VPlan Def/Use graph, used for modeling the data @@ -51,7 +50,6 @@ class VPValue { friend class VPInterleavedAccessInfo; friend class VPSlotTracker; friend class VPRecipeBase; - friend class VPPredInstPHIRecipe; friend class VPWidenMemoryInstructionRecipe; const unsigned char SubclassID; ///< Subclass identifier (for isa/dyn_cast).