summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopInfo.cpp
diff options
context:
space:
mode:
authorPhilip Pfaffe <philip.pfaffe@gmail.com>2017-12-06 21:02:22 +0000
committerPhilip Pfaffe <philip.pfaffe@gmail.com>2017-12-06 21:02:22 +0000
commitd98dbeeb71b7fc37f68e0317142cb1f7f05b5f38 (patch)
tree9eb84bcc2180a34bc90e3d83c16576c618414e1b /polly/lib/Analysis/ScopInfo.cpp
parentec5b87188d22834cd887dca8347dd2342071659a (diff)
downloadbcm5719-llvm-d98dbeeb71b7fc37f68e0317142cb1f7f05b5f38.tar.gz
bcm5719-llvm-d98dbeeb71b7fc37f68e0317142cb1f7f05b5f38.zip
Port SCEVAffinator to the isl c++ bindings
Summary: Straight forward port of SCEVAffinator Reviewers: grosser, bollu, Meinersbur Reviewed By: Meinersbur Subscribers: pollydev, llvm-commits Differential Revision: https://reviews.llvm.org/D40803 llvm-svn: 319958
Diffstat (limited to 'polly/lib/Analysis/ScopInfo.cpp')
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 37d0d1ce8a7..d2bc71fb6d5 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -1105,9 +1105,9 @@ isl::pw_aff MemoryAccess::getPwAff(const SCEV *E) {
PWACtx PWAC = Stmt->getParent()->getPwAff(E, Stmt->getEntryBlock());
isl::set StmtDom = getStatement()->getDomain();
StmtDom = StmtDom.reset_tuple_id();
- isl::set NewInvalidDom = StmtDom.intersect(isl::manage(PWAC.second));
+ isl::set NewInvalidDom = StmtDom.intersect(PWAC.second);
InvalidDomain = InvalidDomain.unite(NewInvalidDom);
- return isl::manage(PWAC.first);
+ return PWAC.first;
}
// Create a map in the size of the provided set domain, that maps from the
@@ -1440,8 +1440,8 @@ getPwAff(Scop &S, BasicBlock *BB,
DenseMap<BasicBlock *, isl::set> &InvalidDomainMap, const SCEV *E,
bool NonNegative = false) {
PWACtx PWAC = S.getPwAff(E, BB, NonNegative);
- InvalidDomainMap[BB] = InvalidDomainMap[BB].unite(isl::manage(PWAC.second));
- return PWAC.first;
+ InvalidDomainMap[BB] = InvalidDomainMap[BB].unite(PWAC.second);
+ return PWAC.first.take();
}
/// Build the conditions sets for the switch @p SI in the @p Domain.
@@ -4493,8 +4493,7 @@ isl::union_set Scop::getDomains() const {
isl::pw_aff Scop::getPwAffOnly(const SCEV *E, BasicBlock *BB) {
PWACtx PWAC = getPwAff(E, BB);
- isl_set_free(PWAC.second);
- return isl::manage(PWAC.first);
+ return PWAC.first;
}
isl::union_map
OpenPOWER on IntegriCloud