diff options
| author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-04-04 10:01:53 +0000 |
|---|---|---|
| committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-04-04 10:01:53 +0000 |
| commit | 2d950f36ee1611e57134992f2b9d1f8525c70b44 (patch) | |
| tree | 72f92f7f43418eef6c1c1f5545bfb11eb17f47d0 /polly/lib/CodeGen/PPCGCodeGeneration.cpp | |
| parent | 43ba52535792a35d6b70a72695c8760dac326330 (diff) | |
| download | bcm5719-llvm-2d950f36ee1611e57134992f2b9d1f8525c70b44.tar.gz bcm5719-llvm-2d950f36ee1611e57134992f2b9d1f8525c70b44.zip | |
[Polly][NewPM] Pull references to the legacy PM interface from utilities and helpers
Summary:
A couple of the utilities used to analyze or build IR make explicit use of the legacy PM on their interface, to access analysis results. This patch removes the legacy PM from the interface, and just passes the required results directly.
This shouldn't introduce any function changes, although the API technically allowed to obtain two different analysis results before, one passed by reference and one through the PM. I don't believe that was ever intended, however.
Reviewers: grosser, Meinersbur
Reviewed By: grosser
Subscribers: nemanjai, pollydev, llvm-commits
Tags: #polly
Differential Revision: https://reviews.llvm.org/D31653
llvm-svn: 299423
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 6d28a8d0568..2bd1b425811 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -143,11 +143,11 @@ static __isl_give isl_id_to_ast_expr *pollyBuildAstExprForStmt( /// @see GPUNodeBuilder::createUser class GPUNodeBuilder : public IslNodeBuilder { public: - GPUNodeBuilder(PollyIRBuilder &Builder, ScopAnnotator &Annotator, Pass *P, + GPUNodeBuilder(PollyIRBuilder &Builder, ScopAnnotator &Annotator, const DataLayout &DL, LoopInfo &LI, ScalarEvolution &SE, DominatorTree &DT, Scop &S, BasicBlock *StartBlock, gpu_prog *Prog) - : IslNodeBuilder(Builder, Annotator, P, DL, LI, SE, DT, S, StartBlock), + : IslNodeBuilder(Builder, Annotator, DL, LI, SE, DT, S, StartBlock), Prog(Prog) { getExprBuilder().setIDToSAI(&IDToSAI); } @@ -1543,7 +1543,6 @@ void GPUNodeBuilder::createKernelFunction(ppcg_kernel *Kernel, BasicBlock *PrevBlock = Builder.GetInsertBlock(); auto EntryBlock = BasicBlock::Create(Builder.getContext(), "entry", FN); - DominatorTree &DT = P->getAnalysis<DominatorTreeWrapperPass>().getDomTree(); DT.addNewBlock(EntryBlock, PrevBlock); Builder.SetInsertPoint(EntryBlock); @@ -2403,9 +2402,9 @@ public: // which may introduce scalar dependences that prevent us from correctly // code generating this scop. BasicBlock *StartBlock = - executeScopConditionally(*S, this, Builder.getTrue()); + executeScopConditionally(*S, Builder.getTrue(), *DT, *RI, *LI); - GPUNodeBuilder NodeBuilder(Builder, Annotator, this, *DL, *LI, *SE, *DT, *S, + GPUNodeBuilder NodeBuilder(Builder, Annotator, *DL, *LI, *SE, *DT, *S, StartBlock, Prog); // TODO: Handle LICM |

