forked from OSchip/llvm-project
parent
5483931117
commit
654af8f62f
|
@ -105,7 +105,8 @@ static void collectInfo(Scop &S, isl_union_map **Read, isl_union_map **Write,
|
|||
// [Stmt[i0, i1] -> MemAcc_A[i0 + i1]] -> [0, i0, 2, i1, 0]
|
||||
isl_map *Schedule = Stmt->getSchedule();
|
||||
Schedule = isl_map_apply_domain(
|
||||
Schedule, isl_map_reverse(isl_map_domain_map(isl_map_copy(accdom))));
|
||||
Schedule,
|
||||
isl_map_reverse(isl_map_domain_map(isl_map_copy(accdom))));
|
||||
accdom = isl_map_range_map(accdom);
|
||||
*AccessSchedule = isl_union_map_add_map(*AccessSchedule, Schedule);
|
||||
}
|
||||
|
@ -464,7 +465,7 @@ void Dependences::calculateDependences(Scop &S) {
|
|||
}
|
||||
|
||||
bool Dependences::isValidSchedule(Scop &S,
|
||||
StatementToIslMapTy *NewSchedule) const {
|
||||
StatementToIslMapTy *NewSchedule) const {
|
||||
if (LegalityCheckDisabled)
|
||||
return true;
|
||||
|
||||
|
|
|
@ -841,12 +841,11 @@ void ScopStmt::buildSchedule(SmallVectorImpl<unsigned> &ScheduleVec) {
|
|||
isl_space *Space = isl_space_set_alloc(getIslCtx(), 0, NbScheduleDims);
|
||||
|
||||
Schedule = isl_map_from_domain_and_range(isl_set_universe(getDomainSpace()),
|
||||
isl_set_universe(Space));
|
||||
isl_set_universe(Space));
|
||||
|
||||
// Loop dimensions.
|
||||
for (unsigned i = 0; i < NbIterators; ++i)
|
||||
Schedule =
|
||||
isl_map_equate(Schedule, isl_dim_out, 2 * i + 1, isl_dim_in, i);
|
||||
Schedule = isl_map_equate(Schedule, isl_dim_out, 2 * i + 1, isl_dim_in, i);
|
||||
|
||||
// Constant dimensions
|
||||
for (unsigned i = 0; i < NbIterators + 1; ++i)
|
||||
|
@ -1981,7 +1980,8 @@ void Scop::addScopStmt(BasicBlock *BB, Region *R, TempScop &tempScop,
|
|||
ScopStmt *Stmt;
|
||||
|
||||
if (BB) {
|
||||
Stmt = new ScopStmt(*this, tempScop, CurRegion, *BB, NestLoops, ScheduleVec);
|
||||
Stmt =
|
||||
new ScopStmt(*this, tempScop, CurRegion, *BB, NestLoops, ScheduleVec);
|
||||
StmtMap[BB] = Stmt;
|
||||
} else {
|
||||
assert(R && "Either a basic block or a region is needed to "
|
||||
|
@ -2019,7 +2019,8 @@ void Scop::buildScop(TempScop &tempScop, const Region &CurRegion,
|
|||
E = CurRegion.element_end();
|
||||
I != E; ++I)
|
||||
if (I->isSubRegion()) {
|
||||
buildScop(tempScop, *I->getNodeAs<Region>(), NestLoops, ScheduleVec, LI, SD);
|
||||
buildScop(tempScop, *I->getNodeAs<Region>(), NestLoops, ScheduleVec, LI,
|
||||
SD);
|
||||
} else {
|
||||
BasicBlock *BB = I->getNodeAs<BasicBlock>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue