diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-29 01:39:53 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-29 01:39:53 +0000 |
commit | 9feb7f5846cce0d40db9e4689f8178f5fa570bc3 (patch) | |
tree | 1beba091a19234589fd03c7a88a8a60f6c076940 | |
parent | d880f90c2bb31c9aa803cfaa2e30cb7a7de12aab (diff) | |
download | bcm5719-llvm-9feb7f5846cce0d40db9e4689f8178f5fa570bc3.tar.gz bcm5719-llvm-9feb7f5846cce0d40db9e4689f8178f5fa570bc3.zip |
Do not filter loop if candidate branch is in loop header.
llvm-svn: 37792
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 157b00916cb..953724448eb 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -166,8 +166,6 @@ bool LoopUnswitch::runOnLoop(Loop *L, LPPassManager &LPM_Ref) { // loop. for (Loop::block_iterator I = L->block_begin(), E = L->block_end(); I != E; ++I) { - if (*I == L->getHeader()) - continue; TerminatorInst *TI = (*I)->getTerminator(); if (BranchInst *BI = dyn_cast<BranchInst>(TI)) { // If this isn't branching on an invariant condition, we can't unswitch |