mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
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
This commit is contained in:
parent
33dec797c3
commit
f7761e5c39
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user