[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp

Devang Patel dpatel at apple.com
Thu Jun 28 18:40:15 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

LoopUnswitch.cpp updated: 1.73 -> 1.74
---
Log message:

Do not filter loop if candidate branch is in loop header.


---
Diffs of the changes:  (+0 -2)

 LoopUnswitch.cpp |    2 --
 1 files changed, 2 deletions(-)


Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.73 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.74
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.73	Wed Jun 27 21:05:46 2007
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp	Thu Jun 28 20:39:53 2007
@@ -166,8 +166,6 @@
   // 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






More information about the llvm-commits mailing list