Lines Matching refs:CurrentLoop

192     Loop *CurrentLoop = nullptr;  member in __anon84d475960111::LoopUnswitch
245 void releaseMemory() override { BranchesInfo.forgetLoop(CurrentLoop); } in releaseMemory()
248 LoopHeader = CurrentLoop->getHeader(); in initLoopData()
249 LoopPreheader = CurrentLoop->getLoopPreheader(); in initLoopData()
547 CurrentLoop = L; in runOnLoop()
548 Function *F = CurrentLoop->getHeader()->getParent(); in runOnLoop()
559 assert(CurrentLoop->isLCSSAForm(*DT)); in runOnLoop()
577 while (CurrentLoop->contains(DomBB)) { in isUnreachableDueToPreviousUnswitching()
654 if (!CurrentLoop->isSafeToClone()) in processCurrentLoop()
658 if (!CurrentLoop->hasDedicatedExits()) in processCurrentLoop()
665 CurrentLoop, in processCurrentLoop()
667 *CurrentLoop->getHeader()->getParent()), in processCurrentLoop()
698 for (const auto BB : CurrentLoop->blocks()) { in processCurrentLoop()
715 Value *LoopCond = findLIVLoopCondition(Guard->getOperand(0), CurrentLoop, in processCurrentLoop()
731 for (Loop::block_iterator I = CurrentLoop->block_begin(), in processCurrentLoop()
732 E = CurrentLoop->block_end(); in processCurrentLoop()
743 !SafetyInfo.isGuaranteedToExecute(*TI, DT, CurrentLoop)) in processCurrentLoop()
758 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop, in processCurrentLoop()
772 findLIVLoopCondition(SC, CurrentLoop, Changed, MSSAU.get()); in processCurrentLoop()
832 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoop, in processCurrentLoop()
849 !findOptionMDForLoop(CurrentLoop, "llvm.loop.unswitch.partial.disable")) { in processCurrentLoop()
851 hasPartialIVCondition(*CurrentLoop, MSSAThreshold, *MSSA, *AA)) { in processCurrentLoop()
857 Instruction *TI = CurrentLoop->getHeader()->getTerminator(); in processCurrentLoop()
869 << CurrentLoop->getHeader()->getName() in processCurrentLoop()
884 cast<BranchInst>(CurrentLoop->getLoopPreheader()->getTerminator()); in processCurrentLoop()
895 CurrentLoop->getHeader()->getTerminator(), in processCurrentLoop()
966 << CurrentLoop->getHeader()->getName() in unswitchIfProfitable()
975 << CurrentLoop->getHeader()->getName() in unswitchIfProfitable()
982 unswitchNontrivialCondition(LoopCond, Val, CurrentLoop, TI, ToDuplicate); in unswitchIfProfitable()
1153 BasicBlock *CurrentBB = CurrentLoop->getHeader(); in tryTrivialLoopUnswitch()
1178 if (!CurrentLoop->contains(CurrentBB) || !Visited.insert(CurrentBB).second) in tryTrivialLoopUnswitch()
1225 Value *LoopCond = findLIVLoopCondition(BI->getCondition(), CurrentLoop, in tryTrivialLoopUnswitch()
1239 isTrivialLoopExitBlock(CurrentLoop, BI->getSuccessor(0)))) { in tryTrivialLoopUnswitch()
1242 isTrivialLoopExitBlock(CurrentLoop, BI->getSuccessor(1)))) { in tryTrivialLoopUnswitch()
1254 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()
1260 Value *LoopCond = findLIVLoopCondition(SI->getCondition(), CurrentLoop, in tryTrivialLoopUnswitch()
1278 isTrivialLoopExitBlock(CurrentLoop, Case.getCaseSuccessor()))) { in tryTrivialLoopUnswitch()
1297 unswitchTrivialCondition(CurrentLoop, LoopCond, CondVal, LoopExitBB, in tryTrivialLoopUnswitch()