diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-08 21:52:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-08 21:52:01 +0000 |
commit | f7761e5c3956a8ed8f6a455341dbac86cfbb1699 (patch) | |
tree | c042c69176e67e0850cad7cde844af233fc8c522 /lib/Transforms/Scalar/SimplifyCFG.cpp | |
parent | 33dec797c3ecc310d83b3db8ad42643f8c3c000b (diff) |
Incorporate any changes in the successor blocks into the result of
MarkAliveBlocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp index 0da53a3aab..175dd3b3bf 100644 --- a/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/lib/Transforms/Scalar/SimplifyCFG.cpp @@ -73,7 +73,7 @@ static bool MarkAliveBlocks(BasicBlock *BB, std::set<BasicBlock*> &Reachable) { bool Changed = ConstantFoldTerminator(BB); for (succ_iterator SI = succ_begin(BB), SE = succ_end(BB); SI != SE; ++SI) - MarkAliveBlocks(*SI, Reachable); + Changed |= MarkAliveBlocks(*SI, Reachable); return Changed; } |