Home | History | Annotate | Download | only in Scalar

Lines Matching refs:BECount

147     bool runOnLoopBlock(BasicBlock *BB, const SCEV *BECount,
150 bool processLoopStore(StoreInst *SI, const SCEV *BECount);
151 bool processLoopMemSet(MemSetInst *MSI, const SCEV *BECount);
157 const SCEV *BECount);
161 const SCEV *BECount);
657 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop);
658 if (isa<SCEVCouldNotCompute>(BECount)) return false;
662 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount))
694 MadeChange |= runOnLoopBlock(*BI, BECount, ExitBlocks);
729 bool LoopIdiomRecognize::runOnLoopBlock(BasicBlock *BB, const SCEV *BECount,
744 if (!processLoopStore(SI, BECount)) continue;
757 if (!processLoopMemSet(MSI, BECount)) continue;
773 bool LoopIdiomRecognize::processLoopStore(StoreInst *SI, const SCEV *BECount) {
811 StoredVal, SI, StoreEv, BECount))
822 if (processLoopStoreOfLoopLoad(SI, StoreSize, StoreEv, LoadEv, BECount))
832 processLoopMemSet(MemSetInst *MSI, const SCEV *BECount) {
865 MSI, Ev, BECount);
873 Loop *L, const SCEV *BECount,
882 // to be exactly the size of the memset, which is (BECount+1)*StoreSize
883 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount))
947 const SCEV *BECount) {
993 CurLoop, BECount,
1003 // The # stored bytes is (BECount+1)*Size. Expand the trip count out to
1006 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtr);
1008 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1),
1056 const SCEV *BECount) {
1082 CurLoop, BECount, StoreSize,
1097 if (mayLoopAccessLocation(LoadBasePtr, AliasAnalysis::Mod, CurLoop, BECount,
1109 // The # stored bytes is (BECount+1)*Size. Expand the trip count out to
1112 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtr);
1114 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1),