fix some problems spotted by Duncan and Nicolas Geoffray

llvm-svn: 70872
This commit is contained in:
Chris Lattner 2009-05-04 16:29:24 +00:00
parent 9ae29b2d8f
commit fa552d728d
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ bool JumpThreading::runOnFunction(Function &F) {
BB != &BB->getParent()->getEntryBlock()) {
DOUT << " JT: Deleting dead block '" << BB->getNameStart()
<< "' with terminator: " << *BB->getTerminator();
DeleteDeadBlock(BB);
LoopHeaders.erase(BB);
DeleteDeadBlock(BB);
Changed = true;
}
}
@ -133,7 +133,7 @@ bool JumpThreading::runOnFunction(Function &F) {
return EverChanged;
}
/// FindLoopHeaders - We do not wan jump threading to turn proper loop
/// FindLoopHeaders - We do not want jump threading to turn proper loop
/// structures into irreducible loops. Doing this breaks up the loop nesting
/// hierarchy and pessimizes later transformations. To prevent this from
/// happening, we first have to find the loop headers. Here we approximate this