Searched refs:LoopCost (Results 1 – 5 of 5) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SelectOptimize.cpp | 317 CostInfo *LoopCost); 813 CostInfo LoopCost[2] = {{Scaled64::getZero(), Scaled64::getZero()}, in findProfitableSIGroupsInnerLoops() local 815 if (!computeLoopCosts(L, SIGroups, InstCostMap, LoopCost) || in findProfitableSIGroupsInnerLoops() 816 !checkLoopHeuristics(L, LoopCost)) { in findProfitableSIGroupsInnerLoops() 1042 const CostInfo LoopCost[2]) { in checkLoopHeuristics() 1052 if (LoopCost[0].NonPredCost > LoopCost[0].PredCost || in checkLoopHeuristics() 1053 LoopCost[1].NonPredCost >= LoopCost[1].PredCost) { in checkLoopHeuristics() 1060 Scaled64 Gain[2] = {LoopCost[0].PredCost - LoopCost[0].NonPredCost, in checkLoopHeuristics() 1061 LoopCost[1].PredCost - LoopCost[1].NonPredCost}; in checkLoopHeuristics() 1084 (LoopCost[1].PredCost - LoopCost[0].PredCost); in checkLoopHeuristics() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | LoopCacheAnalysis.cpp | 606 CacheCostTy LoopCost = computeLoopCacheCost(*L, RefGroups); in calculateCacheFootprint() local 607 LoopCosts.push_back(std::make_pair(L, LoopCost)); in calculateCacheFootprint() 707 CacheCostTy LoopCost = 0; in computeLoopCacheCost() local 710 LoopCost += RefGroupCost * TripCountsProduct; in computeLoopCacheCost() 714 << "' has cost=" << LoopCost << "\n"); in computeLoopCacheCost() 716 return LoopCost; in computeLoopCacheCost()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SimpleLoopUnswitch.cpp | 3316 InstructionCost LoopCost = 0; in findBestNonTrivialUnswitchCandidate() local 3325 LoopCost += Cost; in findBestNonTrivialUnswitchCandidate() 3326 assert(LoopCost >= 0 && "Must not have negative loop costs!"); in findBestNonTrivialUnswitchCandidate() 3329 LLVM_DEBUG(dbgs() << " Total loop cost: " << LoopCost << "\n"); in findBestNonTrivialUnswitchCandidate() 3352 return LoopCost; in findBestNonTrivialUnswitchCandidate() 3393 assert(Cost <= LoopCost && in findBestNonTrivialUnswitchCandidate() 3406 return (LoopCost - Cost) * (SuccessorsCount - 1); in findBestNonTrivialUnswitchCandidate()
|
| H A D | LoopStrengthReduce.cpp | 1305 unsigned LoopCost = 1; in RateRegister() local 1314 LoopCost = 0; in RateRegister() 1321 LoopCost = 0; in RateRegister() 1325 C.AddRecCost += LoopCost; in RateRegister()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorize.cpp | 1237 unsigned selectInterleaveCount(ElementCount VF, InstructionCost LoopCost); 5334 InstructionCost LoopCost) { in selectInterleaveCount() argument 5369 if (LoopCost == 0) { in selectInterleaveCount() 5370 LoopCost = expectedCost(VF).first; in selectInterleaveCount() 5371 assert(LoopCost.isValid() && "Expected to have chosen a VF with valid cost"); in selectInterleaveCount() 5374 if (LoopCost == 0) in selectInterleaveCount() 5512 LLVM_DEBUG(dbgs() << "LV: Loop cost is " << LoopCost << '\n' in selectInterleaveCount() 5518 !ScalarInterleavingRequiresPredication && LoopCost < SmallLoopCost) { in selectInterleaveCount() 5523 SmallLoopCost / *LoopCost.getValue())); in selectInterleaveCount()
|