diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-08-06 21:42:38 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-08-06 21:42:38 +0000 |
commit | 61bd3a4840f78ab8b3ecfa633d14e92f95acd0e5 (patch) | |
tree | 06613ba2f67433becc1dff1a5ca0ca04aba48f1c /polly/lib/CodeGen | |
parent | 31df6f31c0813fa7a93b1c195e2182a2527965a4 (diff) | |
download | bcm5719-llvm-61bd3a4840f78ab8b3ecfa633d14e92f95acd0e5.tar.gz bcm5719-llvm-61bd3a4840f78ab8b3ecfa633d14e92f95acd0e5.zip |
[ScopInfo] Move Scop::getPwAffOnly to isl++ [NFC]
llvm-svn: 310231
Diffstat (limited to 'polly/lib/CodeGen')
-rw-r--r-- | polly/lib/CodeGen/IslAst.cpp | 6 | ||||
-rw-r--r-- | polly/lib/CodeGen/IslNodeBuilder.cpp | 2 | ||||
-rw-r--r-- | polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp index e515ac4ec3c..fd2581f37f0 100644 --- a/polly/lib/CodeGen/IslAst.cpp +++ b/polly/lib/CodeGen/IslAst.cpp @@ -412,7 +412,7 @@ void IslAst::init(const Dependences &D) { // We can not perform the dependence analysis and, consequently, // the parallel code generation in case the schedule tree contains // extension nodes. - auto *ScheduleTree = S.getScheduleTree(); + auto *ScheduleTree = S.getScheduleTree().release(); PerformParallelTest = PerformParallelTest && !S.containsExtensionNode(ScheduleTree); isl_schedule_free(ScheduleTree); @@ -453,7 +453,7 @@ void IslAst::init(const Dependences &D) { RunCondition = buildRunCondition(S, Build); - Root = isl_ast_build_node_from_schedule(Build, S.getScheduleTree()); + Root = isl_ast_build_node_from_schedule(Build, S.getScheduleTree().release()); isl_ast_build_free(Build); } @@ -654,7 +654,7 @@ void IslAstInfo::print(raw_ostream &OS) { P = isl_ast_node_print(RootNode, P, Options); AstStr = isl_printer_get_str(P); - auto *Schedule = S.getScheduleTree(); + auto *Schedule = S.getScheduleTree().release(); DEBUG({ dbgs() << S.getContextStr() << "\n"; diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp index a35d0337bf1..849caf4c736 100644 --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -1010,7 +1010,7 @@ bool IslNodeBuilder::materializeValue(isl_id *Id) { } else if (S.getStmtFor(Inst)) { IsDead = false; } else { - auto *Domain = S.getDomainConditions(Inst->getParent()); + auto *Domain = S.getDomainConditions(Inst->getParent()).release(); IsDead = isl_set_is_empty(Domain); isl_set_free(Domain); } diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index 3da159e8a2b..637106af552 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -2653,7 +2653,7 @@ public: PPCGScop->dep_order = nullptr; PPCGScop->tagged_dep_order = nullptr; - PPCGScop->schedule = S->getScheduleTree(); + PPCGScop->schedule = S->getScheduleTree().release(); // If we have something non-trivial to kill, add it to the schedule if (KillsInfo.KillsSchedule.get()) PPCGScop->schedule = isl_schedule_sequence( |