Lines Matching refs:CurLoop

115   Loop *CurLoop = nullptr;  member in __anon98455dea0111::LoopIdiomRecognize
275 CurLoop = L; in runOnLoop()
302 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop); in runOnCountableLoop()
314 CurLoop->getUniqueExitBlocks(ExitBlocks); in runOnCountableLoop()
317 << CurLoop->getHeader()->getParent()->getName() in runOnCountableLoop()
318 << "] Loop %" << CurLoop->getHeader()->getName() << "\n"); in runOnCountableLoop()
325 SafetyInfo.computeLoopSafetyInfo(CurLoop); in runOnCountableLoop()
330 for (auto *BB : CurLoop->getBlocks()) { in runOnCountableLoop()
332 if (LI->getLoopFor(BB) != CurLoop) in runOnCountableLoop()
420 if (!StoreEv || StoreEv->getLoop() != CurLoop || !StoreEv->isAffine()) in isLegalStore()
444 CurLoop->isLoopInvariant(SplatValue)) { in isLegalStore()
479 if (!LoadEv || LoadEv->getLoop() != CurLoop || !LoadEv->isAffine()) in isLegalStore()
740 if (!Ev || Ev->getLoop() != CurLoop || !Ev->isAffine()) in processLoopMemSet()
761 if (!SplatValue || !CurLoop->isLoopInvariant(SplatValue)) in processLoopMemSet()
826 unsigned StoreSize, Loop *CurLoop, in getNumBytes() argument
838 CurLoop, ICmpInst::ICMP_NE, BECount, in getNumBytes()
876 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStridedStore()
900 if (mayLoopAccessLocation(BasePtr, ModRefInfo::ModRef, CurLoop, BECount, in processLoopStridedStore()
914 getNumBytes(BECount, IntPtr, StoreSize, CurLoop, DL, SE); in processLoopStridedStore()
989 BasicBlock *Preheader = CurLoop->getLoopPreheader(); in processLoopStoreOfLoopLoad()
1012 if (mayLoopAccessLocation(StoreBasePtr, ModRefInfo::ModRef, CurLoop, BECount, in processLoopStoreOfLoopLoad()
1032 if (mayLoopAccessLocation(LoadBasePtr, ModRefInfo::Mod, CurLoop, BECount, in processLoopStoreOfLoopLoad()
1047 getNumBytes(BECount, IntPtrTy, StoreSize, CurLoop, DL, SE); in processLoopStoreOfLoopLoad()
1099 if (ApplyCodeSizeHeuristics && CurLoop->getNumBlocks() > 1) { in avoidLIRForMultiBlockLoop()
1100 if (!CurLoop->getParentLoop() && (!IsMemset || !IsLoopMemset)) { in avoidLIRForMultiBlockLoop()
1101 LLVM_DEBUG(dbgs() << " " << CurLoop->getHeader()->getParent()->getName() in avoidLIRForMultiBlockLoop()
1182 static bool detectPopcountIdiom(Loop *CurLoop, BasicBlock *PreCondBB, in detectPopcountIdiom() argument
1195 LoopEntry = *(CurLoop->block_begin()); in detectPopcountIdiom()
1278 Value *T = matchCondition(PreCondBr, CurLoop->getLoopPreheader()); in detectPopcountIdiom()
1317 static bool detectShiftUntilZeroIdiom(Loop *CurLoop, const DataLayout &DL, in detectShiftUntilZeroIdiom() argument
1327 LoopEntry = *(CurLoop->block_begin()); in detectShiftUntilZeroIdiom()
1351 InitX = PhiX->getIncomingValueForBlock(CurLoop->getLoopPreheader()); in detectShiftUntilZeroIdiom()
1394 if (CurLoop->getNumBackEdges() != 1 || CurLoop->getNumBlocks() != 1) in recognizeAndInsertFFS()
1406 if (!detectShiftUntilZeroIdiom(CurLoop, *DL, IntrinID, InitX, in recognizeAndInsertFFS()
1412 if (!CurLoop->contains(cast<Instruction>(U))) { in recognizeAndInsertFFS()
1418 if (!CurLoop->contains(cast<Instruction>(U))) { in recognizeAndInsertFFS()
1433 BasicBlock *PH = CurLoop->getLoopPreheader(); in recognizeAndInsertFFS()
1465 if (CurLoop->getHeader()->size() != IdiomCanonicalSize && in recognizeAndInsertFFS()
1490 if (CurLoop->getNumBackEdges() != 1 || CurLoop->getNumBlocks() != 1) in recognizePopcount()
1493 BasicBlock *LoopBody = *(CurLoop->block_begin()); in recognizePopcount()
1500 BasicBlock *PH = CurLoop->getLoopPreheader(); in recognizePopcount()
1519 if (!detectPopcountIdiom(CurLoop, PreCondBB, CntInst, CntPhi, Val)) in recognizePopcount()
1642 BasicBlock *Body = *(CurLoop->block_begin()); in transformLoopToCountable()
1672 SE->forgetLoop(CurLoop); in transformLoopToCountable()
1678 BasicBlock *PreHead = CurLoop->getLoopPreheader(); in transformLoopToPopcount()
1748 BasicBlock *Body = *(CurLoop->block_begin()); in transformLoopToPopcount()
1778 SE->forgetLoop(CurLoop); in transformLoopToPopcount()