Home
last modified time | relevance | path

Searched refs:BackedgeTakenCount (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp126 Value *LinearFunctionTestReplace(Loop *L, const SCEV *BackedgeTakenCount,
1282 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in canExpandBackedgeTakenCount() local
1283 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount) || in canExpandBackedgeTakenCount()
1284 BackedgeTakenCount->isZero()) in canExpandBackedgeTakenCount()
1295 if (isHighCostExpansion(BackedgeTakenCount, BI, SE)) in canExpandBackedgeTakenCount()
1513 const SCEV *BackedgeTakenCount, in LinearFunctionTestReplace() argument
1522 BackedgeTakenCount->getType() : IndVar->getType(); in LinearFunctionTestReplace()
1524 const SCEV *IVLimit = BackedgeTakenCount; in LinearFunctionTestReplace()
1763 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in runOnLoop() local
1788 if (!isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in runOnLoop()
[all …]
DLoopStrengthReduce.cpp1469 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeShadowIV() local
1470 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeShadowIV()
1652 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeMax() local
1653 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeMax()
1655 const SCEV *One = SE.getConstant(BackedgeTakenCount->getType(), 1); in OptimizeMax()
1658 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
1666 if (const SCEVSMaxExpr *S = dyn_cast<SCEVSMaxExpr>(BackedgeTakenCount)) { in OptimizeMax()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp110 Value *linearFunctionTestReplace(Loop *L, const SCEV *BackedgeTakenCount,
1566 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in canExpandBackedgeTakenCount() local
1567 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount) || in canExpandBackedgeTakenCount()
1568 BackedgeTakenCount->isZero()) in canExpandBackedgeTakenCount()
1578 if (Rewriter.isHighCostExpansion(BackedgeTakenCount, L)) in canExpandBackedgeTakenCount()
1912 const SCEV *BackedgeTakenCount, in linearFunctionTestReplace() argument
1919 const SCEV *IVCount = BackedgeTakenCount; in linearFunctionTestReplace()
1928 IVCount = SE->getAddExpr(BackedgeTakenCount, in linearFunctionTestReplace()
1929 SE->getOne(BackedgeTakenCount->getType())); in linearFunctionTestReplace()
1972 if (IVCount != BackedgeTakenCount && Count == 0) { in linearFunctionTestReplace()
[all …]
DLoopStrengthReduce.cpp1788 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeShadowIV() local
1789 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeShadowIV()
1966 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeMax() local
1967 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeMax()
1969 const SCEV *One = SE.getConstant(BackedgeTakenCount->getType(), 1); in OptimizeMax()
1972 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
1980 if (const SCEVSMaxExpr *S = dyn_cast<SCEVSMaxExpr>(BackedgeTakenCount)) { in OptimizeMax()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DLoopRerollPass.cpp398 void replace(const SCEV *BackedgeTakenCount);
482 const SCEV *BackedgeTakenCount, ReductionTracker &Reductions);
1411 void LoopReroll::DAGRootTracker::replace(const SCEV *BackedgeTakenCount) { in replace() argument
1447 auto Zero = SE->getZero(BackedgeTakenCount->getType()); in replace()
1448 auto One = SE->getOne(BackedgeTakenCount->getType()); in replace()
1451 Expander.expandCodeFor(NewIVSCEV, BackedgeTakenCount->getType(), in replace()
1454 auto TripCount = SE->getAddExpr(BackedgeTakenCount, One); in replace()
1456 TripCount, SE->getConstant(BackedgeTakenCount->getType(), Scale)); in replace()
1459 Expander.expandCodeFor(ScaledBECount, BackedgeTakenCount->getType(), in replace()
1607 const SCEV *BackedgeTakenCount, in reroll() argument
[all …]
DIndVarSimplify.cpp150 Value *linearFunctionTestReplace(Loop *L, const SCEV *BackedgeTakenCount,
1851 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in canExpandBackedgeTakenCount() local
1852 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount) || in canExpandBackedgeTakenCount()
1853 BackedgeTakenCount->isZero()) in canExpandBackedgeTakenCount()
1863 if (Rewriter.isHighCostExpansion(BackedgeTakenCount, L)) in canExpandBackedgeTakenCount()
2198 const SCEV *BackedgeTakenCount, in linearFunctionTestReplace() argument
2205 const SCEV *IVCount = BackedgeTakenCount; in linearFunctionTestReplace()
2216 IVCount = SE->getAddExpr(BackedgeTakenCount, in linearFunctionTestReplace()
2217 SE->getOne(BackedgeTakenCount->getType())); in linearFunctionTestReplace()
2265 if (IVCount != BackedgeTakenCount && Count == 0) { in linearFunctionTestReplace()
[all …]
DLoopStrengthReduce.cpp2039 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeShadowIV() local
2040 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeShadowIV()
2224 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(L); in OptimizeMax() local
2225 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in OptimizeMax()
2227 const SCEV *One = SE.getConstant(BackedgeTakenCount->getType(), 1); in OptimizeMax()
2230 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
2238 if (const SCEVSMaxExpr *S = dyn_cast<SCEVSMaxExpr>(BackedgeTakenCount)) { in OptimizeMax()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2762 const SCEV *BackedgeTakenCount = PSE.getBackedgeTakenCount(); in getOrCreateTripCount() local
2763 assert(BackedgeTakenCount != SE->getCouldNotCompute() && in getOrCreateTripCount()
2773 if (BackedgeTakenCount->getType()->getPrimitiveSizeInBits() > in getOrCreateTripCount()
2775 BackedgeTakenCount = SE->getTruncateOrNoop(BackedgeTakenCount, IdxTy); in getOrCreateTripCount()
2776 BackedgeTakenCount = SE->getNoopOrZeroExtend(BackedgeTakenCount, IdxTy); in getOrCreateTripCount()
2780 BackedgeTakenCount, SE->getOne(BackedgeTakenCount->getType())); in getOrCreateTripCount()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp1333 const SCEV &BackedgeTakenCount, in isSafeDependenceDistance() argument
1355 const SCEV *Step = SE.getConstant(BackedgeTakenCount.getType(), ByteStride); in isSafeDependenceDistance()
1356 const SCEV *Product = SE.getMulExpr(&BackedgeTakenCount, Step); in isSafeDependenceDistance()
DScalarEvolution.cpp8093 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(LI); in computeSCEVAtScope() local
8095 dyn_cast<SCEVConstant>(BackedgeTakenCount)) { in computeSCEVAtScope()
8254 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(AddRec->getLoop()); in computeSCEVAtScope() local
8255 if (BackedgeTakenCount == getCouldNotCompute()) return AddRec; in computeSCEVAtScope()
8258 return AddRec->evaluateAtIteration(BackedgeTakenCount, *this); in computeSCEVAtScope()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp2600 const SCEV *BackedgeTakenCount = PSE.getBackedgeTakenCount(); in getOrCreateTripCount() local
2601 assert(BackedgeTakenCount != SE->getCouldNotCompute() && in getOrCreateTripCount()
2611 if (BackedgeTakenCount->getType()->getPrimitiveSizeInBits() > in getOrCreateTripCount()
2613 BackedgeTakenCount = SE->getTruncateOrNoop(BackedgeTakenCount, IdxTy); in getOrCreateTripCount()
2614 BackedgeTakenCount = SE->getNoopOrZeroExtend(BackedgeTakenCount, IdxTy); in getOrCreateTripCount()
2618 BackedgeTakenCount, SE->getOne(BackedgeTakenCount->getType())); in getOrCreateTripCount()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp4939 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(LI); in computeSCEVAtScope() local
4941 dyn_cast<SCEVConstant>(BackedgeTakenCount)) { in computeSCEVAtScope()
5084 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(AddRec->getLoop()); in computeSCEVAtScope() local
5085 if (BackedgeTakenCount == getCouldNotCompute()) return AddRec; in computeSCEVAtScope()
5088 return AddRec->evaluateAtIteration(BackedgeTakenCount, *this); in computeSCEVAtScope()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp6741 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(LI); in computeSCEVAtScope() local
6743 dyn_cast<SCEVConstant>(BackedgeTakenCount)) { in computeSCEVAtScope()
6883 const SCEV *BackedgeTakenCount = getBackedgeTakenCount(AddRec->getLoop()); in computeSCEVAtScope() local
6884 if (BackedgeTakenCount == getCouldNotCompute()) return AddRec; in computeSCEVAtScope()
6887 return AddRec->evaluateAtIteration(BackedgeTakenCount, *this); in computeSCEVAtScope()