Home
last modified time | relevance | path

Searched refs:BBSize (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/bolt/lib/Passes/
H A DCacheMetrics.cpp42 std::unordered_map<BinaryBasicBlock *, uint64_t> &BBSize) { in extractBasicBlockInfo() argument
50 BBSize[&BB] = BB.getOutputSize(); in extractBasicBlockInfo()
54 BBSize[&BB] = BB.getOriginalSize(); in extractBasicBlockInfo()
65 const std::unordered_map<BinaryBasicBlock *, uint64_t> &BBSize) { in calcTSPScore() argument
76 BBAddr.at(&SrcBB) + BBSize.at(&SrcBB) == BBAddr.at(DstBB)) in calcTSPScore()
90 const std::unordered_map<BinaryBasicBlock *, uint64_t> &BBSize) { in calcExtTSPScore() argument
162 const std::unordered_map<BinaryBasicBlock *, uint64_t> &BBSize) { in expectedCacheHitRatio() argument
303 std::unordered_map<BinaryBasicBlock *, uint64_t> BBSize; in printAll() local
304 extractBasicBlockInfo(BFs, BBAddr, BBSize); in printAll()
310 << format("%.0lf\n", calcTSPScore(BFs, BBAddr, BBSize)); in printAll()
[all …]
H A DTailDuplication.cpp411 DenseMap<const BinaryBasicBlock *, uint64_t> BBSize; in cacheScoreImproved() local
413 BBSize[&BB] = std::max<uint64_t>(BB.estimateSize(Emitter), 1); in cacheScoreImproved()
421 Addr += BBSize[SrcBB]; in cacheScoreImproved()
429 Addr += BBSize[SrcBB]; in cacheScoreImproved()
431 Addr += BBSize[Tail]; in cacheScoreImproved()
440 CurScore += cacheScore(CurAddr[SrcBB], BBSize[SrcBB], CurAddr[DstBB], in cacheScoreImproved()
441 BBSize[DstBB], BI->Count); in cacheScoreImproved()
454 NewScore += cacheScore(NewAddr[SrcBB], BBSize[SrcBB], in cacheScoreImproved()
455 NewAddr[SrcBB] + BBSize[SrcBB], BBSize[DstBB], in cacheScoreImproved()
458 NewScore += cacheScore(NewAddr[SrcBB], BBSize[SrcBB], NewAddr[DstBB], in cacheScoreImproved()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp303 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size; in fixupConditionalBranch() local
306 BBSize += NewBrSize; in fixupConditionalBranch()
311 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size; in fixupConditionalBranch() local
314 BBSize += NewBrSize; in fixupConditionalBranch()
317 unsigned &BBSize = BlockInfo[MBB->getNumber()].Size; in fixupConditionalBranch() local
320 BBSize -= RemovedSize; in fixupConditionalBranch()
H A DCriticalAntiDepBreaker.cpp51 const unsigned BBSize = BB->size(); in StartBlock() local
58 DefIndices[i] = BBSize; in StartBlock()
72 KillIndices[Reg] = BBSize; in StartBlock()
90 KillIndices[Reg] = BBSize; in StartBlock()
H A DAggressiveAntiDepBreaker.cpp59 const unsigned BBSize = BB->size(); in AggressiveAntiDepState() local
66 DefIndices[i] = BBSize; in AggressiveAntiDepState()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp1097 size_t BBSize = Caller->size() + Callee->size() - 1; in areInlineCompatible() local
1098 return BBSize <= InlineMaxBB; in areInlineCompatible()