forked from OSchip/llvm-project
ScopInfo: Simplify code by folding definition into if
llvm-svn: 258632
This commit is contained in:
parent
9768e7f06b
commit
c9abde8c51
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue