diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-27 03:43:35 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-27 03:43:35 +0000 |
commit | d735ee85dbab8e4f66f9ec157f19956e0d11ec7a (patch) | |
tree | ab14008be184ab6c761122865aa954c9b9b2d2d9 /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | af9ac8f8212a062291e218ea0dea90a2e81dcf66 (diff) |
Make LoopInfoBase more generic, in preparation for having MachineLoopInfo. This involves a small interface change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 21a4e23825..73f5db0cc2 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -380,7 +380,7 @@ void LoopSimplify::InsertPreheaderForLoop(Loop *L) { // We know that we have loop information to update... update it now. if (Loop *Parent = L->getParentLoop()) - Parent->addBasicBlockToLoop(NewBB, *LI); + Parent->addBasicBlockToLoop(NewBB, LI->getBase()); DT->splitBlock(NewBB); if (DominanceFrontier *DF = getAnalysisToUpdate<DominanceFrontier>()) @@ -412,7 +412,7 @@ BasicBlock *LoopSimplify::RewriteLoopExitBlock(Loop *L, BasicBlock *Exit) { while (SuccLoop && !SuccLoop->contains(L->getHeader())) SuccLoop = SuccLoop->getParentLoop(); if (SuccLoop) - SuccLoop->addBasicBlockToLoop(NewBB, *LI); + SuccLoop->addBasicBlockToLoop(NewBB, LI->getBase()); // Update Dominator Information DT->splitBlock(NewBB); @@ -558,7 +558,7 @@ Loop *LoopSimplify::SeparateNestedLoop(Loop *L) { // This block is going to be our new header block: add it to this loop and all // parent loops. - NewOuter->addBasicBlockToLoop(NewBB, *LI); + NewOuter->addBasicBlockToLoop(NewBB, LI->getBase()); // L is now a subloop of our outer loop. NewOuter->addChildLoop(L); @@ -693,7 +693,7 @@ void LoopSimplify::InsertUniqueBackedgeBlock(Loop *L) { // Update Loop Information - we know that this block is now in the current // loop and all parent loops. - L->addBasicBlockToLoop(BEBlock, *LI); + L->addBasicBlockToLoop(BEBlock, LI->getBase()); // Update dominator information DT->splitBlock(BEBlock); |