diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-04 16:29:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-04 16:29:24 +0000 |
commit | fa552d728dfcff0d436d6e881cf042b27df9282f (patch) | |
tree | bc5b8ec115350fc297e83f78faa4db7310c83f54 /llvm/lib/Transforms/Scalar/JumpThreading.cpp | |
parent | 9ae29b2d8f9475d308474ee14dff65e164fddc2c (diff) | |
download | bcm5719-llvm-fa552d728dfcff0d436d6e881cf042b27df9282f.tar.gz bcm5719-llvm-fa552d728dfcff0d436d6e881cf042b27df9282f.zip |
fix some problems spotted by Duncan and Nicolas Geoffray
llvm-svn: 70872
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/JumpThreading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp index 1844957f58e..c0ca2df1ce1 100644 --- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp +++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp @@ -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 |