Commit c261bb7
authored
[memprof] Deduplicate alloc site matches (#142334)
With:
commit 2425626
Author: Kazu Hirata <[email protected]>
Date: Sun Jun 1 08:09:58 2025 -0700
we print out a lot of duplicate alloc site matches.
This patch partially reverts the patch above. The core idea of using
a map to deduplicate entries remains the same, but details are
different. Specifically:
- This PR uses the [FullStackID, MatchLength] as the key, where
MatchLength is the length of an alloc site match.
- AllocMatchInfo in this PR no longer has Matched because we always
report matches.
- AllocMatchInfo in this PR no longer has NumFramesMatched because it
has become part of the key.
This deduplication roughly halves the amount of messages printed out.1 parent 77e2e3f commit c261bb7
File tree
2 files changed
+29
-11
lines changed- llvm
- lib/Transforms/Instrumentation
- test/Transforms/PGOProfile
2 files changed
+29
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
819 | 824 | | |
820 | 825 | | |
821 | 826 | | |
| |||
994 | 999 | | |
995 | 1000 | | |
996 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
997 | 1004 | | |
998 | 1005 | | |
999 | 1006 | | |
| |||
1206 | 1213 | | |
1207 | 1214 | | |
1208 | 1215 | | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1214 | 1219 | | |
1215 | 1220 | | |
1216 | 1221 | | |
| |||
1325 | 1330 | | |
1326 | 1331 | | |
1327 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1328 | 1339 | | |
1329 | 1340 | | |
1330 | 1341 | | |
| |||
1335 | 1346 | | |
1336 | 1347 | | |
1337 | 1348 | | |
1338 | | - | |
1339 | | - | |
| 1349 | + | |
| 1350 | + | |
1340 | 1351 | | |
1341 | 1352 | | |
1342 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
1343 | 1361 | | |
1344 | 1362 | | |
1345 | 1363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 114 | | |
119 | 115 | | |
| 116 | + | |
| 117 | + | |
120 | 118 | | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments