Lines Matching refs:CurrentLoop
185 Loop *CurrentLoop = nullptr; member in __anon72012fd20111::LoopUnswitch
237 void releaseMemory() override { BranchesInfo.forgetLoop(CurrentLoop); } in releaseMemory()
240 LoopHeader = CurrentLoop->getHeader(); in initLoopData()
241 LoopPreheader = CurrentLoop->getLoopPreheader(); in initLoopData()
536 CurrentLoop = L; in runOnLoop()
537 Function *F = CurrentLoop->getHeader()->getParent(); in runOnLoop()
548 assert(CurrentLoop->isLCSSAForm(*DT)); in runOnLoop()
566 while (CurrentLoop->contains(DomBB)) { in isUnreachableDueToPreviousUnswitching()
643 if (!CurrentLoop->isSafeToClone()) in processCurrentLoop()
647 if (!CurrentLoop->hasDedicatedExits()) in processCurrentLoop()
654 CurrentLoop, in processCurrentLoop()
656 *CurrentLoop->getHeader()->getParent()), in processCurrentLoop()
687 for (const auto BB : CurrentLoop->blocks()) { in processCurrentLoop()
704 Value *LoopCond = findLIVLoopCondition(Guard->getOperand(0), CurrentLoop, in processCurrentLoop()
720 for (Loop::block_iterator I = CurrentLoop->block_begin(), in processCurrentLoop()
721 E = CurrentLoop->block_end(); in processCurrentLoop()
732 !SafetyInfo.isGuaranteedToExecute(*TI, DT, CurrentLoop)) in processCurrentLoop()
747 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop, in processCurrentLoop()
761 findLIVLoopCondition(SC, CurrentLoop, Changed, MSSAU.get()); in processCurrentLoop()
821 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoop, in processCurrentLoop()
892 << CurrentLoop->getHeader()->getName() in unswitchIfProfitable()
901 << CurrentLoop->getHeader()->getName() in unswitchIfProfitable()
908 unswitchNontrivialCondition(LoopCond, Val, CurrentLoop, TI); in unswitchIfProfitable()
1040 BasicBlock *CurrentBB = CurrentLoop->getHeader(); in tryTrivialLoopUnswitch()
1065 if (!CurrentLoop->contains(CurrentBB) || !Visited.insert(CurrentBB).second) in tryTrivialLoopUnswitch()
1112 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop, in tryTrivialLoopUnswitch()
1126 isTrivialLoopExitBlock(CurrentLoop, BI->getSuccessor(0)))) { in tryTrivialLoopUnswitch()
1129 isTrivialLoopExitBlock(CurrentLoop, BI->getSuccessor(1)))) { in tryTrivialLoopUnswitch()
1141 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()
1147 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoop, in tryTrivialLoopUnswitch()
1165 isTrivialLoopExitBlock(CurrentLoop, Case.getCaseSuccessor()))) { in tryTrivialLoopUnswitch()
1184 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()