[llvm] [BOLT][NFCI] Simplify DataAggregator using traces (PR #143289)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 11 23:48:46 PDT 2025
================
@@ -1307,29 +1280,25 @@ std::error_code DataAggregator::parseAggregatedLBREntry() {
if (ToFunc)
ToFunc->setHasProfileAvailable();
- Trace Trace(FromOffset, ToOffset);
- // Taken trace
- if (Type == TRACE || Type == BRANCH) {
- TakenBranchInfo &Info = BranchLBRs[Trace];
- Info.TakenCount += Count;
- Info.MispredCount += Mispreds;
-
- NumTotalSamples += Count;
+ if (Type == FT || Type == FT_EXTERNAL_ORIGIN) {
----------------
paschalis-mpeis wrote:
nit: consider adding a comment
https://github.com/llvm/llvm-project/pull/143289
More information about the llvm-commits
mailing list