[PATCH] D46935: [ScopInfo] Remove usage of isl_set_n_basic_set()
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 16 07:08:56 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332471: [ScopInfo] Remove usage of isl_set_n_basic_set() (authored by pfaffe, committed by ).
Herald added a reviewer: bollu.
Changed prior to commit:
https://reviews.llvm.org/D46935?vs=147057&id=147082#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46935
Files:
polly/trunk/lib/Analysis/ScopInfo.cpp
Index: polly/trunk/lib/Analysis/ScopInfo.cpp
===================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp
+++ polly/trunk/lib/Analysis/ScopInfo.cpp
@@ -276,7 +276,7 @@
if (Range.isFullSet())
return S;
- if (isl_set_n_basic_set(S.get()) > MaxDisjunctsInContext)
+ if (S.n_basic_set() > MaxDisjunctsInContext)
return S;
// In case of signed wrapping, we can refine the set of valid values by
@@ -2312,7 +2312,7 @@
Set = Set.remove_divs();
polly::simplify(Set);
- if (isl_set_n_basic_set(Set.get()) > RunTimeChecksMaxAccessDisjuncts)
+ if (Set.n_basic_set() > RunTimeChecksMaxAccessDisjuncts)
Set = Set.simple_hull();
// Restrict the number of parameters involved in the access as the lexmin/
@@ -2652,16 +2652,15 @@
Loop *SuccBBLoop = getFirstNonBoxedLoopFor(SuccBB, LI, getBoxedLoops());
- auto *AdjustedInvalidDomain = adjustDomainDimensions(
- *this, InvalidDomain.copy(), BBLoop, SuccBBLoop);
+ auto AdjustedInvalidDomain = isl::manage(adjustDomainDimensions(
+ *this, InvalidDomain.copy(), BBLoop, SuccBBLoop));
- auto *SuccInvalidDomain = InvalidDomainMap[SuccBB].copy();
- SuccInvalidDomain =
- isl_set_union(SuccInvalidDomain, AdjustedInvalidDomain);
- SuccInvalidDomain = isl_set_coalesce(SuccInvalidDomain);
- unsigned NumConjucts = isl_set_n_basic_set(SuccInvalidDomain);
+ isl::set SuccInvalidDomain = InvalidDomainMap[SuccBB];
+ SuccInvalidDomain = SuccInvalidDomain.unite(AdjustedInvalidDomain);
+ SuccInvalidDomain = SuccInvalidDomain.coalesce();
+ unsigned NumConjucts = SuccInvalidDomain.n_basic_set();
- InvalidDomainMap[SuccBB] = isl::manage(SuccInvalidDomain);
+ InvalidDomainMap[SuccBB] = SuccInvalidDomain;
// Check if the maximal number of domain disjunctions was reached.
// In case this happens we will bail.
@@ -2839,7 +2838,7 @@
// Check if the maximal number of domain disjunctions was reached.
// In case this happens we will clean up and bail.
- if (isl_set_n_basic_set(SuccDomain.get()) < MaxDisjunctsInDomain)
+ if (SuccDomain.n_basic_set() < MaxDisjunctsInDomain)
continue;
invalidate(COMPLEXITY, DebugLoc());
@@ -3686,7 +3685,7 @@
isl::set DomainCtx = Stmt.getDomain().params();
DomainCtx = DomainCtx.subtract(StmtInvalidCtx);
- if (isl_set_n_basic_set(DomainCtx.get()) >= MaxDisjunctsInDomain) {
+ if (DomainCtx.n_basic_set() >= MaxDisjunctsInDomain) {
auto *AccInst = InvMAs.front().MA->getAccessInstruction();
invalidate(COMPLEXITY, AccInst->getDebugLoc(), AccInst->getParent());
return;
@@ -3878,8 +3877,7 @@
return WrittenCtx;
WrittenCtx = WrittenCtx.remove_divs();
- bool TooComplex =
- isl_set_n_basic_set(WrittenCtx.get()) >= MaxDisjunctsInDomain;
+ bool TooComplex = WrittenCtx.n_basic_set() >= MaxDisjunctsInDomain;
if (TooComplex || !isRequiredInvariantLoad(LI))
return nullptr;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46935.147082.patch
Type: text/x-patch
Size: 3027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180516/7e98a64a/attachment.bin>
More information about the llvm-commits
mailing list