diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index fcea05402d0..2df10ce92f4 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -325,21 +325,6 @@ void LoopSimplify::InsertPreheaderForLoop(Loop *L) { if (Loop *Parent = L->getParentLoop()) Parent->addBasicBlockToLoop(NewBB, getAnalysis()); - // If the header for the loop used to be an exit node for another loop, then - // we need to update this to know that the loop-preheader is now the exit - // node. Note that the only loop that could have our header as an exit node - // is a sibling loop, ie, one with the same parent loop, or one if it's - // children. - // - LoopInfo::iterator ParentLoops, ParentLoopsE; - if (Loop *Parent = L->getParentLoop()) { - ParentLoops = Parent->begin(); - ParentLoopsE = Parent->end(); - } else { // Must check top-level loops... - ParentLoops = getAnalysis().begin(); - ParentLoopsE = getAnalysis().end(); - } - DominatorSet &DS = getAnalysis(); // Update dominator info DominatorTree &DT = getAnalysis();