mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-29 11:17:28 +00:00
Do not build domains for out of SCoP blocks [NFC]
llvm-svn: 266739
This commit is contained in:
parent
fff283df7a
commit
535de03571
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user