ScopInfo: Simplify code by folding definition into if

llvm-svn: 258632
This commit is contained in:
Tobias Grosser 2016-01-23 20:23:06 +00:00
parent 9768e7f06b
commit c9abde8c51
1 changed files with 1 additions and 2 deletions

View File

@ -3458,8 +3458,7 @@ void Scop::buildSchedule(
auto &LSchedulePair = LoopSchedules[L];
LSchedulePair.second += getNumBlocksInRegionNode(RN);
ScopStmt *Stmt = getStmtForRegionNode(RN);
if (Stmt) {
if (auto *Stmt = getStmtForRegionNode(RN)) {
auto *UDomain = isl_union_set_from_set(Stmt->getDomain());
auto *StmtSchedule = isl_schedule_from_domain(UDomain);
LSchedulePair.first = combineInSequence(LSchedulePair.first, StmtSchedule);