/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 79 bool runOnLoopBlock(BasicBlock *BB, const SCEV *BECount, 82 bool processLoopStore(StoreInst *SI, const SCEV *BECount); 83 bool processLoopMemSet(MemSetInst *MSI, const SCEV *BECount); 89 const SCEV *BECount); 93 const SCEV *BECount); 185 const SCEV *BECount = SE->getBackedgeTakenCount(L); in runOnLoop() local 186 if (isa<SCEVCouldNotCompute>(BECount)) return false; in runOnLoop() 190 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnLoop() 217 MadeChange |= runOnLoopBlock(*BI, BECount, ExitBlocks); in runOnLoop() 225 bool LoopIdiomRecognize::runOnLoopBlock(BasicBlock *BB, const SCEV *BECount, in runOnLoopBlock() argument [all …]
|
D | IndVarSimplify.cpp | 1438 FindLoopCounter(Loop *L, const SCEV *BECount, in FindLoopCounter() argument 1442 if (BECount->getType()->isPointerTy()) in FindLoopCounter() 1445 uint64_t BCWidth = SE->getTypeSizeInBits(BECount->getType()); in FindLoopCounter()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 105 bool runOnLoopBlock(BasicBlock *BB, const SCEV *BECount, 111 bool processLoopStores(SmallVectorImpl<StoreInst *> &SL, const SCEV *BECount, 113 bool processLoopMemSet(MemSetInst *MSI, const SCEV *BECount); 119 const SCEVAddRecExpr *Ev, const SCEV *BECount, 121 bool processLoopStoreOfLoopLoad(StoreInst *SI, const SCEV *BECount); 244 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop); in runOnCountableLoop() local 245 assert(!isa<SCEVCouldNotCompute>(BECount) && in runOnCountableLoop() 251 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop() 277 MadeChange |= runOnLoopBlock(BB, BECount, ExitBlocks); in runOnCountableLoop() 460 BasicBlock *BB, const SCEV *BECount, in runOnLoopBlock() argument [all …]
|
D | IndVarSimplify.cpp | 1743 static PHINode *FindLoopCounter(Loop *L, const SCEV *BECount, in FindLoopCounter() argument 1745 uint64_t BCWidth = SE->getTypeSizeInBits(BECount->getType()); in FindLoopCounter() 1763 if (BECount->getType()->isPointerTy() && !Phi->getType()->isPointerTy()) in FindLoopCounter()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 62 static void ConnectProlog(Loop *L, Value *BECount, unsigned Count, in ConnectProlog() argument 127 B.CreateICmpULT(BECount, ConstantInt::get(BECount->getType(), Count - 1)); in ConnectProlog() 546 Value *BECount = Expander.expandCodeFor(BECountSC, BECountSC->getType(), in UnrollRuntimeLoopRemainder() local 567 Value *ModValTmp = B.CreateURem(BECount, in UnrollRuntimeLoopRemainder() 568 ConstantInt::get(BECount->getType(), in UnrollRuntimeLoopRemainder() 575 ConstantInt::get(BECount->getType(), Count), in UnrollRuntimeLoopRemainder() 579 UseEpilogRemainder ? B.CreateICmpULT(BECount, in UnrollRuntimeLoopRemainder() 580 ConstantInt::get(BECount->getType(), in UnrollRuntimeLoopRemainder() 673 ConnectProlog(L, BECount, Count, PrologExit, PreHeader, NewPreHeader, in UnrollRuntimeLoopRemainder()
|
/external/llvm/test/Transforms/IndVarSimplify/ |
D | 2011-11-01-lftrptr.ll | 7 ; that BECount may or may not be a pointer type. A pointer type 8 ; BECount doesn't really make sense, but that's what falls out of 126 ; IV and BECount have two different pointer types here.
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 1280 const SCEV *BECount = SE->getBackedgeTakenCount(L); in getPreStartForExtend() local 1282 !isa<SCEVCouldNotCompute>(BECount) && SE->isKnownPositive(BECount)) in getPreStartForExtend() 5542 const SCEV *BECount = nullptr; in getExact() local 5546 if (!BECount) in getExact() 5547 BECount = ENT.ExactNotTaken; in getExact() 5548 else if (BECount != ENT.ExactNotTaken) in getExact() 5557 assert(BECount && "Invalid not taken count for loop exit"); in getExact() 5558 return BECount; in getExact() 5819 const SCEV *BECount = getCouldNotCompute(); in computeExitLimitFromCond() local 5826 BECount = getCouldNotCompute(); in computeExitLimitFromCond() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ScalarEvolution.cpp | 4166 const SCEV *BECount = 0; in getExact() local 4172 if (!BECount) in getExact() 4173 BECount = ENT->ExactNotTaken; in getExact() 4175 BECount = SE->getUMinFromMismatchedTypes(BECount, ENT->ExactNotTaken); in getExact() 4177 assert(BECount && "Invalid not taken count for loop exit"); in getExact() 4178 return BECount; in getExact() 4343 const SCEV *BECount = getCouldNotCompute(); in ComputeExitLimitFromCond() local 4350 BECount = getCouldNotCompute(); in ComputeExitLimitFromCond() 4352 BECount = getUMinFromMismatchedTypes(EL0.Exact, EL1.Exact); in ComputeExitLimitFromCond() 4366 BECount = EL0.Exact; in ComputeExitLimitFromCond() [all …]
|