diff options
author | Florian Hahn <flo@fhahn.com> | 2019-05-30 18:46:13 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-05-30 18:46:13 +0000 |
commit | 9bbdde259803f8a02d992a0d47b174a1efc8442f (patch) | |
tree | fe8389043e2209798094752209a09e00bca32043 /llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h | |
parent | ec1b4d1f6fb0fe0c11ef4532db0c657067baf14c (diff) | |
download | bcm5719-llvm-9bbdde259803f8a02d992a0d47b174a1efc8442f.tar.gz bcm5719-llvm-9bbdde259803f8a02d992a0d47b174a1efc8442f.zip |
[LV] Remove the redundant using LoopVectorizationPlanner:VPlanPtr
VPlan.h already contains the declaration of VPlanPtr type alias:
using VPlanPtr = std::unique_ptr<VPlan>;
The LoopVectorizationPlanner class also contains the same declaration
of VPlanPtr and therefore LoopVectorize requires a long wording when
its methods return VPlanPtr:
LoopVectorizationPlanner::VPlanPtr
LoopVectorizationPlanner::buildVPlanWithVPRecipes(...)
but LoopVectorize.cpp includes VPlan.h (via LoopVectorizationPlanner.h)
and can use VPlanPtr from that header.
Patch by Pavel Samolysov.
Reviewers: hsaito, rengolin, fhahn
Reviewed By: fhahn
Differential Revision: https://reviews.llvm.org/D62576
llvm-svn: 362126
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h index 8b7cf300eef..97077cce83e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h +++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h @@ -198,11 +198,9 @@ class LoopVectorizationPlanner { /// The legality analysis. LoopVectorizationLegality *Legal; - /// The profitablity analysis. + /// The profitability analysis. LoopVectorizationCostModel &CM; - using VPlanPtr = std::unique_ptr<VPlan>; - SmallVector<VPlanPtr, 4> VPlans; /// This class is used to enable the VPlan to invoke a method of ILV. This is |