Lines Matching refs:Loop

125     using LoopPropsMap = std::map<const Loop *, LoopProperties>;
153 bool countLoop(const Loop *L, const TargetTransformInfo &TTI,
157 void forgetLoop(const Loop *L);
174 void cloneData(const Loop *NewLoop, const Loop *OldLoop,
179 LoopInfo *LI; // Loop information
185 std::vector<Loop*> LoopProcessWorklist;
192 Loop *CurrentLoop = nullptr;
221 bool runOnLoop(Loop *L, LPPassManager &LPM) override;
229 // Lazy BFI and BPI are marked as preserved here so Loop Unswitching
254 void splitExitEdges(Loop *L,
262 void unswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
264 void unswitchNontrivialCondition(Value *LIC, Constant *OnVal, Loop *L,
268 void rewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC,
277 void simplifyCode(std::vector<Instruction *> &Worklist, Loop *L);
289 bool LUAnalysisCache::countLoop(const Loop *L, const TargetTransformInfo &TTI,
337 void LUAnalysisCache::forgetLoop(const Loop *L) {
370 void LUAnalysisCache::cloneData(const Loop *NewLoop, const Loop *OldLoop,
435 static Value *findLIVLoopCondition(Value *Cond, Loop *L, bool &Changed,
519 findLIVLoopCondition(Value *Cond, Loop *L, bool &Changed,
532 bool LoopUnswitch::runOnLoop(Loop *L, LPPassManager &LPMRef) {
728 // Loop over all of the basic blocks in the loop. If we find an interior
731 for (Loop::block_iterator I = CurrentLoop->block_begin(),
913 static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB,
948 static BasicBlock *isTrivialLoopExitBlock(Loop *L, BasicBlock *BB) {
1016 Loop *L = LI->getLoopFor(I->getParent());
1095 void LoopUnswitch::unswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val,
1311 Loop *L, const SmallVectorImpl<BasicBlock *> &ExitBlocks) {
1329 Value *LIC, Constant *Val, Loop *L, Instruction *TI,
1389 // Now we create the new Loop object for the versioned loop.
1390 Loop *NewLoop = cloneLoop(L, L->getParentLoop(), VMap, LI, LPM);
1396 Loop *ParentLoop = L->getParentLoop();
1406 if (Loop *ExitBBLoop = LI->getLoopFor(ExitBlocks[EBI]))
1527 std::vector<Instruction *> &Worklist, Loop *L,
1552 void LoopUnswitch::rewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC,
1691 void LoopUnswitch::simplifyCode(std::vector<Instruction *> &Worklist, Loop *L) {