summaryrefslogtreecommitdiffstats
path: root/polly/lib/Support/ScopHelper.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-24 11:46:18 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2015-02-24 11:46:18 +0000
commit667b77b3a1c5df7c6c48a8a47e60ae0023633f69 (patch)
treec17dc8d0a7ac4a13dc8b24374d2cd847130add17 /polly/lib/Support/ScopHelper.cpp
parentba65c1672ab4a26b3196fdb7bfa1cd49541d5d2d (diff)
downloadbcm5719-llvm-667b77b3a1c5df7c6c48a8a47e60ae0023633f69.tar.gz
bcm5719-llvm-667b77b3a1c5df7c6c48a8a47e60ae0023633f69.zip
[FIX] Create single exiting block
llvm-svn: 230326
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
-rw-r--r--polly/lib/Support/ScopHelper.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp
index 39a6040d50c..eaa45e64e98 100644
--- a/polly/lib/Support/ScopHelper.cpp
+++ b/polly/lib/Support/ScopHelper.cpp
@@ -169,10 +169,9 @@ BasicBlock *polly::simplifyRegion(Scop *S, Pass *P) {
// Create single exit edge if the region has multiple exit edges.
if (!R->getExitingBlock()) {
- BasicBlock *NewExit = createSingleExitEdge(R, P);
-
- for (auto &&SubRegion : *R)
- SubRegion->replaceExitRecursive(NewExit);
+ BasicBlock *NewExiting = createSingleExitEdge(R, P);
+ assert(NewExiting == R->getExitingBlock() &&
+ "Did not create a single exiting block");
}
return EnteringBB;
OpenPOWER on IntegriCloud