Do not build domains for out of SCoP blocks [NFC]

llvm-svn: 266739
This commit is contained in:
Johannes Doerfert 2016-04-19 14:49:05 +00:00
parent fff283df7a
commit 535de03571

View File

@ -2489,6 +2489,13 @@ bool Scop::buildDomainsWithBranchConstraints(Region *R, ScopDetection &SD,
isl_set *CondSet = ConditionSets[u];
BasicBlock *SuccBB = getRegionNodeSuccessor(RN, TI, u);
auto *SuccStmt = getStmtFor(SuccBB);
// Skip blocks outside the region.
if (!SuccStmt) {
isl_set_free(CondSet);
continue;
}
// If we propagate the domain of some block to "SuccBB" we do not have to
// adjust the domain.
if (FinishedExitBlocks.count(SuccBB)) {