Lines Matching defs:InnerLoop
334 : OuterLoop(Outer), InnerLoop(Inner), SE(SE), LI(LI), DT(DT),
357 Loop *InnerLoop;
372 : OuterLoop(Outer), InnerLoop(Inner), SE(SE) {}
382 Loop *InnerLoop;
395 : OuterLoop(Outer), InnerLoop(Inner), SE(SE), LI(LI), DT(DT),
399 /// Interchange OuterLoop and InnerLoop.
401 void restructureLoops(Loop *InnerLoop, Loop *OuterLoop);
402 void removeChildLoop(Loop *OuterLoop, Loop *InnerLoop);
414 Loop *InnerLoop;
576 Loop *InnerLoop = LoopList[InnerLoopId];
579 LoopInterchangeLegality LIL(OuterLoop, InnerLoop, SE, LI, DT,
586 LoopInterchangeProfitability LIP(OuterLoop, InnerLoop, SE);
592 LoopInterchangeTransform LIT(OuterLoop, InnerLoop, SE, LI, DT,
615 if (!areAllUsesReductions(L, InnerLoop))
638 bool LoopInterchangeLegality::tightlyNested(Loop *OuterLoop, Loop *InnerLoop) {
640 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
676 BasicBlock *InnerLoopPreheader = InnerLoop->getLoopPreheader();
754 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
755 BasicBlock *InnerLoopHeader = InnerLoop->getHeader();
756 BasicBlock *InnerLoopLatch = InnerLoop->getLoopLatch();
763 if (!findInductionAndReductions(InnerLoop, Inductions, Reductions))
862 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
876 if (!InnerLoopPreHeader || InnerLoopPreHeader == InnerLoop->getHeader() ||
879 InsertPreheaderForLoop(InnerLoop, DT, LI, PreserveLCSSA);
890 if (!tightlyNested(OuterLoop, InnerLoop)) {
901 for (auto BI = InnerLoop->block_begin(), BE = InnerLoop->block_end();
919 if (AR->getLoop() == InnerLoop) {
920 // We found an InnerLoop induction after OuterLoop induction. It is
934 // We found an OuterLoop induction after InnerLoop induction. It is
994 Loop *InnerLoop) {
997 if (*I == InnerLoop) {
1005 void LoopInterchangeTransform::restructureLoops(Loop *InnerLoop,
1011 removeChildLoop(OuterLoop, InnerLoop);
1012 OuterLoopParent->addChildLoop(InnerLoop);
1014 removeChildLoop(OuterLoop, InnerLoop);
1015 LI->changeTopLevelLoop(OuterLoop, InnerLoop);
1018 while (!InnerLoop->empty())
1019 OuterLoop->addChildLoop(InnerLoop->removeChildLoop(InnerLoop->begin()));
1021 InnerLoop->addChildLoop(OuterLoop);
1030 if (InnerLoop->getSubLoops().size() == 0) {
1031 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
1033 PHINode *InductionPHI = getInductionVariable(InnerLoop, SE);
1062 restructureLoops(InnerLoop, OuterLoop);
1067 BasicBlock *InnerLoopLatch = InnerLoop->getLoopLatch();
1075 // stay in the innerloop body.
1076 BasicBlock *InnerLoopHeader = InnerLoop->getHeader();
1077 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
1132 BasicBlock *InnerLoopHeader = InnerLoop->getHeader();
1134 BasicBlock *InnerLoopLatch = InnerLoop->getLoopLatch();
1137 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
1244 BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();