/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 161 bool runOnLoopBlock(BasicBlock *BB, const SCEV *BECount, 166 bool processLoopStores(SmallVectorImpl<StoreInst *> &SL, const SCEV *BECount, 168 bool processLoopMemSet(MemSetInst *MSI, const SCEV *BECount); 174 const SCEVAddRecExpr *Ev, const SCEV *BECount, 176 bool processLoopStoreOfLoopLoad(StoreInst *SI, const SCEV *BECount); 300 const SCEV *BECount = SE->getBackedgeTakenCount(CurLoop); in runOnCountableLoop() local 301 assert(!isa<SCEVCouldNotCompute>(BECount) && in runOnCountableLoop() 307 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop() 333 MadeChange |= runOnLoopBlock(BB, BECount, ExitBlocks); in runOnCountableLoop() 529 BasicBlock *BB, const SCEV *BECount, in runOnLoopBlock() argument [all …]
|
D | IndVarSimplify.cpp | 2029 static PHINode *FindLoopCounter(Loop *L, const SCEV *BECount, in FindLoopCounter() argument 2031 uint64_t BCWidth = SE->getTypeSizeInBits(BECount->getType()); in FindLoopCounter() 2049 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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 67 static void ConnectProlog(Loop *L, Value *BECount, unsigned Count, in ConnectProlog() argument 142 B.CreateICmpULT(BECount, ConstantInt::get(BECount->getType(), Count - 1)); in ConnectProlog() 680 Value *BECount = Expander.expandCodeFor(BECountSC, BECountSC->getType(), in UnrollRuntimeLoopRemainder() local 701 Value *ModValTmp = B.CreateURem(BECount, in UnrollRuntimeLoopRemainder() 702 ConstantInt::get(BECount->getType(), in UnrollRuntimeLoopRemainder() 709 ConstantInt::get(BECount->getType(), Count), in UnrollRuntimeLoopRemainder() 713 UseEpilogRemainder ? B.CreateICmpULT(BECount, in UnrollRuntimeLoopRemainder() 714 ConstantInt::get(BECount->getType(), in UnrollRuntimeLoopRemainder() 879 ConnectProlog(L, BECount, Count, PrologExit, LatchExit, PreHeader, in UnrollRuntimeLoopRemainder()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 148 bool processCopyingStore(Loop *CurLoop, StoreInst *SI, const SCEV *BECount); 150 bool runOnLoopBlock(Loop *CurLoop, BasicBlock *BB, const SCEV *BECount, 1967 const SCEV *BECount, unsigned StoreSize, in mayLoopAccessLocation() argument 1977 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation() 2006 StoreInst *SI, const SCEV *BECount) { in processCopyingStore() argument 2046 Type *BECountTy = BECount->getType(); in processCopyingStore() 2069 if (mayLoopAccessLocation(StoreBasePtr, ModRefInfo::ModRef, CurLoop, BECount, in processCopyingStore() 2074 BECount, StoreSize, *AA, Ignore1)) { in processCopyingStore() 2116 if (mayLoopAccessLocation(LoadBasePtr, ModRefInfo::Mod, CurLoop, BECount, in processCopyingStore() 2142 BECount = SE->getTruncateOrZeroExtend(BECount, IntPtrTy); in processCopyingStore() [all …]
|
/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/swiftshader/third_party/llvm-7.0/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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 1438 const SCEV *BECount = SE->getBackedgeTakenCount(L); in getPreStartForExtend() local 1440 !isa<SCEVCouldNotCompute>(BECount) && SE->isKnownPositive(BECount)) in getPreStartForExtend() 6863 const SCEV *BECount = ENT.ExactNotTaken; in getExact() local 6864 assert(BECount != SE->getCouldNotCompute() && "Bad exit SCEV!"); in getExact() 6869 Ops.push_back(BECount); in getExact() 7180 const SCEV *BECount = getCouldNotCompute(); in computeExitLimitFromCondImpl() local 7187 BECount = getCouldNotCompute(); in computeExitLimitFromCondImpl() 7189 BECount = in computeExitLimitFromCondImpl() 7204 BECount = EL0.ExactNotTaken; in computeExitLimitFromCondImpl() 7213 !isa<SCEVCouldNotCompute>(BECount)) in computeExitLimitFromCondImpl() [all …]
|
D | DependenceAnalysis.cpp | 1015 const SCEV *BECount = SE->getBackedgeTakenCount(AddRec->getLoop()); in isKnownLessThan() local 1016 if (!isa<SCEVCouldNotCompute>(BECount)) { in isKnownLessThan() 1017 const SCEV *Limit = AddRec->evaluateAtIteration(BECount, *SE); in isKnownLessThan()
|