@@ -92,16 +92,6 @@ class DataAggregator : public DataReader {
9292 uint64_t Addr;
9393 };
9494
95- // / Used for parsing specific pre-aggregated input files.
96- struct AggregatedLBREntry {
97- enum Type : char { BRANCH = 0 , FT, FT_EXTERNAL_ORIGIN, TRACE };
98- Location From;
99- Location To;
100- uint64_t Count;
101- uint64_t Mispreds;
102- Type EntryType;
103- };
104-
10595 struct Trace {
10696 uint64_t From;
10797 uint64_t To;
@@ -131,7 +121,6 @@ class DataAggregator : public DataReader {
131121 // / and use them later for processing and assigning profile.
132122 std::unordered_map<Trace, TakenBranchInfo, TraceHash> BranchLBRs;
133123 std::unordered_map<Trace, FTInfo, TraceHash> FallthroughLBRs;
134- std::vector<AggregatedLBREntry> AggregatedLBRs;
135124 std::unordered_map<uint64_t , uint64_t > BasicSamples;
136125 std::vector<PerfMemSample> MemSamples;
137126
@@ -197,10 +186,6 @@ class DataAggregator : public DataReader {
197186
198187 BoltAddressTranslation *BAT{nullptr };
199188
200- // / Whether pre-aggregated profile needs to convert branch profile into call
201- // / to continuation fallthrough profile.
202- bool NeedsConvertRetProfileToCallCont{false };
203-
204189 // / Update function execution profile with a recorded trace.
205190 // / A trace is region of code executed between two LBR entries supplied in
206191 // / execution order.
@@ -420,14 +405,7 @@ class DataAggregator : public DataReader {
420405 // / F 41be90 41be90 4
421406 // / B 4b1942 39b57f0 3 0
422407 // / B 4b196f 4b19e0 2 0
423- void parsePreAggregated ();
424-
425- // / Parse the full output of pre-aggregated LBR samples generated by
426- // / an external tool.
427- std::error_code parsePreAggregatedLBRSamples ();
428-
429- // / Process parsed pre-aggregated data.
430- void processPreAggregated ();
408+ std::error_code parsePreAggregated ();
431409
432410 // / If \p Address falls into the binary address space based on memory
433411 // / mapping info \p MMI, then adjust it for further processing by subtracting
0 commit comments