File tree Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Expand file tree Collapse file tree 2 files changed +7
-23
lines changed Original file line number Diff line number Diff line change @@ -1904,9 +1904,6 @@ class Scop {
1904
1904
void init (AAResults &AA, AssumptionCache &AC, DominatorTree &DT,
1905
1905
LoopInfo &LI);
1906
1906
1907
- // / Add parameter constraints to @p C that imply a non-empty domain.
1908
- isl::set addNonEmptyDomainConstraints (isl::set C) const ;
1909
-
1910
1907
// / Return the access for the base ptr of @p MA if any.
1911
1908
MemoryAccess *lookupBasePtrAccess (MemoryAccess *MA);
1912
1909
Original file line number Diff line number Diff line change @@ -1977,28 +1977,15 @@ bool Scop::isProfitable(bool ScalarsAreUnprofitable) const {
1977
1977
}
1978
1978
1979
1979
bool Scop::hasFeasibleRuntimeContext () const {
1980
- auto PositiveContext = getAssumedContext ();
1981
- auto NegativeContext = getInvalidContext ();
1982
- PositiveContext = addNonEmptyDomainConstraints (PositiveContext);
1983
- // addNonEmptyDomainConstraints returns null if ScopStmts have a null domain
1984
- if (!PositiveContext)
1980
+ if (Stmts.empty ())
1985
1981
return false ;
1986
1982
1987
- bool IsFeasible = !(PositiveContext.is_empty () ||
1988
- PositiveContext.is_subset (NegativeContext));
1989
- if (!IsFeasible)
1990
- return false ;
1991
-
1992
- auto DomainContext = getDomains ().params ();
1993
- IsFeasible = !DomainContext.is_subset (NegativeContext);
1994
- IsFeasible &= !getContext ().is_subset (NegativeContext);
1995
-
1996
- return IsFeasible;
1997
- }
1998
-
1999
- isl::set Scop::addNonEmptyDomainConstraints (isl::set C) const {
2000
- isl::set DomainContext = getDomains ().params ();
2001
- return C.intersect_params (DomainContext);
1983
+ isl::set PositiveContext = getAssumedContext ();
1984
+ isl::set NegativeContext = getInvalidContext ();
1985
+ PositiveContext = PositiveContext.intersect_params (Context);
1986
+ PositiveContext = PositiveContext.intersect_params (getDomains ().params ());
1987
+ return PositiveContext.is_empty ().is_false () &&
1988
+ PositiveContext.is_subset (NegativeContext).is_false ();
2002
1989
}
2003
1990
2004
1991
MemoryAccess *Scop::lookupBasePtrAccess (MemoryAccess *MA) {
You can’t perform that action at this time.
0 commit comments