[polly] r266739 - Do not build domains for out of SCoP blocks [NFC]
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 07:49:05 PDT 2016
Author: jdoerfert
Date: Tue Apr 19 09:49:05 2016
New Revision: 266739
URL: http://llvm.org/viewvc/llvm-project?rev=266739&view=rev
Log:
Do not build domains for out of SCoP blocks [NFC]
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=266739&r1=266738&r2=266739&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Apr 19 09:49:05 2016
@@ -2489,6 +2489,13 @@ bool Scop::buildDomainsWithBranchConstra
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)) {
More information about the llvm-commits
mailing list