diff options
author | Florian Hahn <flo@fhahn.com> | 2021-01-06 10:23:40 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-01-06 10:47:09 +0000 |
commit | f73c09caa2a86fa9fe6f88b4a4c438c005fea32c (patch) | |
tree | 2bc5743e1f5c57fd879badf3cdf410198baf7a87 | |
parent | e4cda13d5a54a8c6366e4ca82d74265e68bbb3f5 (diff) | |
download | llvm-f73c09caa2a86fa9fe6f88b4a4c438c005fea32c.zip llvm-f73c09caa2a86fa9fe6f88b4a4c438c005fea32c.tar.gz llvm-f73c09caa2a86fa9fe6f88b4a4c438c005fea32c.tar.bz2 |
[VPlan] Use public VPValue constructor in VPPRedInstPHIRecipe (NFC).
VPPredInstPHIRecipe does not need access to VPValue via friendship. It
can just use the public constructor,
Discussed as part of D92281.
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlan.h | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Vectorize/VPlanValue.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index e6635e7..01c2894 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -1242,7 +1242,7 @@ public: /// 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 1ebe1f8..5bafe22 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). |