Clear split info object.
authorDevang Patel <dpatel@apple.com>
Tue, 11 Sep 2007 00:23:56 +0000 (00:23 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 11 Sep 2007 00:23:56 +0000 (00:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41823 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopIndexSplit.cpp

index f4be5ddef9c749e22a54879b5b37a2ce5d7da397..abda03ca0a43c2c906384d66e6ded1f7830aa1a3 100644 (file)
@@ -382,6 +382,7 @@ void LoopIndexSplit::findSplitCondition() {
   // Check all basic block's terminators.
   for (Loop::block_iterator I = L->block_begin(), E = L->block_end();
        I != E; ++I) {
+    SD.clear();
     BasicBlock *BB = *I;
 
     // If this basic block does not terminate in a conditional branch