diff options
author | Chris Lattner <sabre@nondot.org> | 2006-02-18 01:32:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-02-18 01:32:04 +0000 |
commit | caf489353605905fce38b7033987010bad910b57 (patch) | |
tree | 34f128979d7a4c20475f9b7ae4df669215519e9b /lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | f4412d890dd20af78120a793c973f319e4b506ea (diff) |
a previous patch completely disabled trivial unswitching, this fixees it.
Thanks to nate for pointing this out :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopUnswitch.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index 25c16199b5..8713631c34 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -168,7 +168,6 @@ static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB, static BasicBlock *isTrivialLoopExitBlock(Loop *L, BasicBlock *BB) { std::set<BasicBlock*> Visited; Visited.insert(L->getHeader()); // Branches to header are ok. - Visited.insert(BB); // Don't revisit BB after we do. BasicBlock *ExitBB = 0; if (isTrivialLoopExitBlockHelper(L, BB, ExitBB, Visited)) return ExitBB; |