Fix some formatting issues

llvm-svn: 235381
This commit is contained in:
Tobias Grosser 2015-04-21 11:42:01 +00:00
parent 5483931117
commit 654af8f62f
2 changed files with 9 additions and 7 deletions

View File

@ -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);
}

View File

@ -845,8 +845,7 @@ void ScopStmt::buildSchedule(SmallVectorImpl<unsigned> &ScheduleVec) {
// 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>();