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 | efe5c862f1528698460593cbb20c4a29fa8e0b70 (patch) | |
| tree | 390a80fd1a5f808026b360a9acf1baf84b9a1286 /llvm/lib/Transforms/Scalar | |
| parent | 735a27246ce5865039cc4708437725b76534b0ce (diff) | |
| download | bcm5719-llvm-efe5c862f1528698460593cbb20c4a29fa8e0b70.tar.gz bcm5719-llvm-efe5c862f1528698460593cbb20c4a29fa8e0b70.zip | |
Incorporate any changes in the successor blocks into the result of
MarkAliveBlocks.
llvm-svn: 32375
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp index 0da53a3aab2..175dd3b3bf6 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp +++ b/llvm/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; } |

