[polly] r295362 - [ScopInfo] Rename MaxDisjunctions -> MaxDisjuncts [NFC]
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 11:11:33 PST 2017
Author: grosser
Date: Thu Feb 16 13:11:33 2017
New Revision: 295362
URL: http://llvm.org/viewvc/llvm-project?rev=295362&view=rev
Log:
[ScopInfo] Rename MaxDisjunctions -> MaxDisjuncts [NFC]
There is only a single disjunction. However, we bound the number of 'disjuncts'
in this disjunction. Name the variable accordingly.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=295362&r1=295361&r2=295362&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Thu Feb 16 13:11:33 2017
@@ -77,7 +77,7 @@ STATISTIC(AssumptionsDelinearization,
// The maximal number of basic sets we allow during domain construction to
// be created. More complex scops will result in very high compile time and
// are also unlikely to result in good code
-static int const MaxDisjunctionsInDomain = 20;
+static int const MaxDisjunctsInDomain = 20;
// The number of disjunct in the context after which we stop to add more
// disjuncts. This parameter is there to avoid exponential growth in the
@@ -1457,13 +1457,13 @@ buildConditionSets(ScopStmt &Stmt, Value
isl_set *AlternativeCondSet = nullptr;
bool TooComplex =
- isl_set_n_basic_set(ConsequenceCondSet) >= MaxDisjunctionsInDomain;
+ isl_set_n_basic_set(ConsequenceCondSet) >= MaxDisjunctsInDomain;
if (!TooComplex) {
AlternativeCondSet = isl_set_subtract(isl_set_copy(Domain),
isl_set_copy(ConsequenceCondSet));
TooComplex =
- isl_set_n_basic_set(AlternativeCondSet) >= MaxDisjunctionsInDomain;
+ isl_set_n_basic_set(AlternativeCondSet) >= MaxDisjunctsInDomain;
}
if (TooComplex) {
@@ -2127,7 +2127,7 @@ static isl_stat buildMinMaxAccess(__isl_
Set = isl_set_remove_divs(Set);
- if (isl_set_n_basic_set(Set) >= MaxDisjunctionsInDomain) {
+ if (isl_set_n_basic_set(Set) >= MaxDisjunctsInDomain) {
isl_set_free(Set);
return isl_stat_error;
}
@@ -2454,7 +2454,7 @@ bool Scop::propagateInvalidStmtDomains(R
// Check if the maximal number of domain disjunctions was reached.
// In case this happens we will bail.
- if (NumConjucts < MaxDisjunctionsInDomain)
+ if (NumConjucts < MaxDisjunctsInDomain)
continue;
isl_set_free(InvalidDomain);
@@ -2633,7 +2633,7 @@ bool Scop::buildDomainsWithBranchConstra
// 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) < MaxDisjunctionsInDomain)
+ if (isl_set_n_basic_set(SuccDomain) < MaxDisjunctsInDomain)
continue;
invalidate(COMPLEXITY, DebugLoc());
@@ -3490,7 +3490,7 @@ void Scop::addInvariantLoads(ScopStmt &S
isl_set *DomainCtx = isl_set_params(Stmt.getDomain());
DomainCtx = isl_set_subtract(DomainCtx, StmtInvalidCtx);
- if (isl_set_n_basic_set(DomainCtx) >= MaxDisjunctionsInDomain) {
+ if (isl_set_n_basic_set(DomainCtx) >= MaxDisjunctsInDomain) {
auto *AccInst = InvMAs.front().MA->getAccessInstruction();
invalidate(COMPLEXITY, AccInst->getDebugLoc());
isl_set_free(DomainCtx);
@@ -3657,7 +3657,7 @@ __isl_give isl_set *Scop::getNonHoistabl
return WrittenCtx;
WrittenCtx = isl_set_remove_divs(WrittenCtx);
- bool TooComplex = isl_set_n_basic_set(WrittenCtx) >= MaxDisjunctionsInDomain;
+ bool TooComplex = isl_set_n_basic_set(WrittenCtx) >= MaxDisjunctsInDomain;
if (TooComplex || !isRequiredInvariantLoad(LI)) {
isl_set_free(WrittenCtx);
return nullptr;
More information about the llvm-commits
mailing list