From d98dbeeb71b7fc37f68e0317142cb1f7f05b5f38 Mon Sep 17 00:00:00 2001 From: Philip Pfaffe Date: Wed, 6 Dec 2017 21:02:22 +0000 Subject: 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 --- polly/lib/Analysis/ScopInfo.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'polly/lib/Analysis/ScopInfo.cpp') 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 &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 -- cgit v1.2.3