Home
last modified time | relevance | path

Searched refs:LoopCost (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopCacheAnalysis.cpp532 CacheCostTy LoopCost = computeLoopCacheCost(*L, RefGroups); in calculateCacheFootprint() local
533 LoopCosts.push_back(std::make_pair(L, LoopCost)); in calculateCacheFootprint()
633 CacheCostTy LoopCost = 0; in computeLoopCacheCost() local
636 LoopCost += RefGroupCost * TripCountsProduct; in computeLoopCacheCost()
640 << "' has cost=" << LoopCost << "\n"); in computeLoopCacheCost()
642 return LoopCost; in computeLoopCacheCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp2725 InstructionCost LoopCost = 0; in unswitchBestCondition() local
2741 LoopCost += Cost; in unswitchBestCondition()
2742 assert(LoopCost >= 0 && "Must not have negative loop costs!"); in unswitchBestCondition()
2745 LLVM_DEBUG(dbgs() << " Total loop cost: " << LoopCost << "\n"); in unswitchBestCondition()
2802 assert(Cost <= LoopCost && in unswitchBestCondition()
2815 return (LoopCost - Cost) * (SuccessorsCount - 1); in unswitchBestCondition()
H A DLoopStrengthReduce.cpp1263 unsigned LoopCost = 1; in RateRegister() local
1272 LoopCost = 0; in RateRegister()
1279 LoopCost = 0; in RateRegister()
1283 C.AddRecCost += LoopCost; in RateRegister()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp1267 unsigned selectInterleaveCount(ElementCount VF, unsigned LoopCost);
6280 unsigned LoopCost) { in selectInterleaveCount() argument
6406 if (LoopCost == 0) { in selectInterleaveCount()
6408 LoopCost = *expectedCost(VF).first.getValue(); in selectInterleaveCount()
6411 assert(LoopCost && "Non-zero loop cost expected"); in selectInterleaveCount()
6427 LLVM_DEBUG(dbgs() << "LV: Loop cost is " << LoopCost << '\n' in selectInterleaveCount()
6432 if (!InterleavingRequiresRuntimePointerCheck && LoopCost < SmallLoopCost) { in selectInterleaveCount()
6437 std::min(IC, (unsigned)PowerOf2Floor(SmallLoopCost / LoopCost)); in selectInterleaveCount()