Shaw Young
9a9af0a23f
[BOLT] Match blocks with pseudo probes ( #99891 )
...
Match inline trees first between profile and the binary: by GUID,
checksum, parent, and inline site for inlined functions. Map profile
probes to binary probes via matched inline tree nodes. Each binary probe
has an associated binary basic block. If all probes from one profile
basic block map to the same binary basic block, it’s an exact match,
otherwise the block is determined by majority vote and reported as loose
match.
Pseudo probe matching happens between exact hash matching and call/loose
matching.
Introduce ProbeMatchSpec - a mechanism to match probes belonging to
another binary function. For example, given functions foo and bar:
```
void foo() {
bar();
}
```
profiled binary: bar is not inlined => have top-level function bar
new binary where the profile is applied to: bar is inlined into foo.
Currently, BOLT does 1:1 matching between profile functions and binary
functions based on the name. #100446 will extend this to N:M where
multiple profiles can be matched to one binary function (as in the
example above where binary function foo would use profiles for foo and
bar), and one profile can be matched to multiple binary functions (e.g.
if bar was inlined into multiple functions).
In this diff, ProbeMatchSpecs would only have one BinaryFunctionProfile
(existing name-based matching).
Test Plan: Added match-blocks-with-pseudo-probes.test
Performance test:
- Setup:
- Baseline no-BOLT: Clang with pseudo probes, ThinLTO + CSSPGO
(#79942 )
- BOLT fresh: BOLTed Clang using fresh profile,
- BOLT stale (hash): BOLTed Clang using stale profile (collected on
Clang 10K commits back), `-infer-stale-profile` (hash+call block
matching)
- BOLT stale (+probe): BOLTed Clang using stale profile,
`-infer-stale-profile` with `-stale-matching-with-pseudo-probes`
(hash+call+pseudo probe block matching)
- 2S Intel SKX Xeon 6138 with 40C/80T and 256GB RAM, using 20C/40T for
build,
- BOLT profiles are collected on Clang compiling large preprocessed
C++ file.
- Benchmark: building Clang (average of 5 runs), see driver in
aaupov/llvm-devmtg-2022
- Results, wall time, lower is better:
- Baseline no-BOLT: 429.52 +- 2.61s,
- BOLT stale (hash): 413.21 +- 2.19s,
- BOLT stale (+probe): 409.69 +- 1.41s,
- BOLT fresh: 384.50 +- 1.80s.
---------
Co-authored-by: Amir Ayupov <aaupov@fb.com>
2024-11-12 07:21:03 -08:00
..
2024-08-07 16:25:46 +04:00
2024-05-31 15:14:37 -07:00
2024-07-16 22:14:43 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-17 16:45:34 -07:00
2024-08-07 16:25:46 +04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-11-07 16:20:19 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-10-08 19:07:43 -04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-07-30 16:58:01 -07:00
2024-07-30 16:58:01 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2023-11-28 22:40:53 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-07-10 11:35:40 -07:00
2024-05-31 15:14:37 -07:00
2024-07-10 11:35:40 -07:00
2024-07-10 11:35:40 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-22 13:41:27 -07:00
2024-01-25 15:00:52 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-07-31 11:35:38 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-25 07:48:57 -07:00
2024-03-22 13:48:49 -07:00
2024-03-18 15:28:01 -07:00
2024-05-25 07:48:57 -07:00
2024-03-18 15:28:01 -07:00
2024-06-05 09:57:11 -07:00
2024-05-25 07:48:57 -07:00
2024-03-18 15:28:01 -07:00
2023-11-28 22:40:53 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-15 13:52:45 -07:00
2024-03-15 13:52:45 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:16:21 -07:00
2024-07-26 18:58:25 -07:00
2024-03-15 13:52:45 -07:00
2024-08-08 16:41:51 -07:00
2024-03-15 13:52:45 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-03-15 13:52:45 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-02-14 15:43:39 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-03-22 13:41:27 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-02-14 11:23:57 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-03-18 15:28:01 -07:00
2024-08-08 16:41:51 -07:00
2024-01-25 15:00:52 -08:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-08-08 16:41:51 -07:00
2024-05-31 15:14:37 -07:00
2024-03-15 13:52:45 -07:00
2024-01-24 15:34:29 -08:00
2024-05-31 15:14:37 -07:00
2023-11-09 09:55:49 -08:00
2024-05-31 15:14:37 -07:00
2024-08-07 15:57:25 +08:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-08-23 08:20:11 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-06-29 21:19:00 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-09-23 18:22:43 +08:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-07-09 20:02:01 -07:00
2024-08-21 00:35:07 -04:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-23 08:20:11 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 17:26:58 -07:00
2024-06-27 17:26:58 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-09 20:02:01 -07:00
2024-07-18 20:57:05 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 19:26:11 -07:00
2024-08-12 17:18:17 -07:00
2024-03-04 17:24:16 -08:00
2024-08-12 17:18:17 -07:00
2024-03-22 15:29:26 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 17:50:58 -07:00
2024-09-23 15:47:19 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2023-11-27 10:53:18 -08:00
2024-11-12 07:21:03 -08:00
2024-11-12 07:21:03 -08:00
2024-07-19 14:00:28 -07:00
2024-11-12 07:21:03 -08:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-03 11:39:18 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-02-01 12:08:41 -08:00
2024-06-11 19:21:11 +01:00
2024-10-28 11:30:30 -07:00
2024-09-25 23:44:06 +02:00
2024-05-13 18:02:38 -07:00
2024-09-12 20:51:35 -07:00
2024-09-12 20:51:35 -07:00
2024-08-12 17:18:17 -07:00
2024-07-01 14:58:45 -07:00
2024-11-12 07:21:03 -08:00
2024-05-31 15:14:37 -07:00
2024-07-05 15:18:49 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-27 17:26:58 -07:00
2024-05-31 15:14:37 -07:00
2024-08-07 20:52:19 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-06-18 13:41:57 +02:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-07-24 07:16:39 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-31 15:14:37 -07:00
2024-08-12 17:18:17 -07:00
2024-05-31 15:14:37 -07:00
2024-05-19 20:15:31 -07:00
2024-04-11 21:15:04 +02:00
2024-09-03 11:27:57 -07:00
2024-05-31 15:14:37 -07:00