Fix LoopInterchange/reductions.ll test for debug builds

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Kaylor 2015-04-24 17:39:16 +00:00
parent d5df7d3c7b
commit 1dd6b024a2

View File

@ -1012,8 +1012,8 @@ void LoopInterchangeTransform::restructureLoops(Loop *InnerLoop,
LI->changeTopLevelLoop(OuterLoop, InnerLoop);
}
for (Loop::iterator I = InnerLoop->begin(), E = InnerLoop->end(); I != E; ++I)
OuterLoop->addChildLoop(InnerLoop->removeChildLoop(I));
while (!InnerLoop->empty())
OuterLoop->addChildLoop(InnerLoop->removeChildLoop(InnerLoop->begin()));
InnerLoop->addChildLoop(OuterLoop);
}