diff options
| author | Tobias Grosser <tobias@grosser.es> | 2017-08-06 16:39:52 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2017-08-06 16:39:52 +0000 |
| commit | dcf8d696ffced5aa757cc32c4fcaa3de681b3222 (patch) | |
| tree | e0c6111388b8a79be501728cb8b025a90d1fb27e /polly/lib/CodeGen/BlockGenerators.cpp | |
| parent | a923c2ee95a4b3b6d43a850789ba56c6aa249b3c (diff) | |
Move ScopInfo::getDomain(), getDomainSpace(), getDomainId() to isl++
llvm-svn: 310209
Diffstat (limited to 'polly/lib/CodeGen/BlockGenerators.cpp')
| -rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index b8e86e8b923c..561f1ed3f79c 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -553,7 +553,7 @@ void BlockGenerator::generateScalarLoads( continue; #ifndef NDEBUG - auto *StmtDom = Stmt.getDomain(); + auto *StmtDom = Stmt.getDomain().release(); auto *AccDom = isl_map_domain(MA->getAccessRelation().release()); assert(isl_set_is_subset(StmtDom, AccDom) && "Scalar must be loaded in all statement instances"); @@ -575,7 +575,7 @@ void BlockGenerator::generateScalarLoads( Value *BlockGenerator::buildContainsCondition(ScopStmt &Stmt, const isl::set &Subdomain) { isl::ast_build AstBuild = give(isl_ast_build_copy(Stmt.getAstBuild())); - isl::set Domain = give(Stmt.getDomain()); + isl::set Domain = Stmt.getDomain(); isl::union_map USchedule = AstBuild.get_schedule(); USchedule = USchedule.intersect_domain(Domain); @@ -599,7 +599,7 @@ Value *BlockGenerator::buildContainsCondition(ScopStmt &Stmt, void BlockGenerator::generateConditionalExecution( ScopStmt &Stmt, const isl::set &Subdomain, StringRef Subject, const std::function<void()> &GenThenFunc) { - isl::set StmtDom = give(Stmt.getDomain()); + isl::set StmtDom = Stmt.getDomain(); // Don't call GenThenFunc if it is never executed. An ast index expression // might not be defined in this case. |
