Commit 1585db4
authored
[IR] Optimize CFI in
Before the patch,
`writeCombinedGlobalValueSummary` traversed entire
`cfiFunction*` for each module, just to pick a few
symbols from `DefOrUseGUIDs`.
Now we change internals of `cfiFunctionDefs` and
`cfiFunctionDecls` to maintain a map from GUID to StringSet.
So now we iterate `DefOrUseGUIDs`, usually small,
and pick exact subset of symbols.
Sorting is not strictly necessary, but it
preserves the order of emitted values.writeCombinedGlobalValueSummary (llvm#130382)1 parent bf2d1c4 commit 1585db4
File tree
2 files changed
+56
-33
lines changed- llvm
- include/llvm/IR
- lib/Bitcode/Writer
2 files changed
+56
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | | - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1295 | 1299 | | |
1296 | 1300 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1304 | 1306 | | |
1305 | 1307 | | |
1306 | 1308 | | |
1307 | | - | |
1308 | | - | |
| 1309 | + | |
1309 | 1310 | | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
| 1311 | + | |
1314 | 1312 | | |
1315 | 1313 | | |
1316 | 1314 | | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
1321 | 1318 | | |
1322 | 1319 | | |
1323 | | - | |
1324 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1325 | 1325 | | |
1326 | 1326 | | |
1327 | | - | |
1328 | | - | |
1329 | 1327 | | |
1330 | 1328 | | |
1331 | 1329 | | |
1332 | 1330 | | |
1333 | 1331 | | |
1334 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1335 | 1340 | | |
1336 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
1337 | 1354 | | |
1338 | 1355 | | |
1339 | | - | |
| 1356 | + | |
1340 | 1357 | | |
1341 | 1358 | | |
1342 | 1359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5064 | 5064 | | |
5065 | 5065 | | |
5066 | 5066 | | |
| 5067 | + | |
5067 | 5068 | | |
5068 | 5069 | | |
5069 | | - | |
5070 | | - | |
5071 | | - | |
5072 | | - | |
5073 | | - | |
5074 | | - | |
| 5070 | + | |
| 5071 | + | |
| 5072 | + | |
| 5073 | + | |
| 5074 | + | |
5075 | 5075 | | |
5076 | | - | |
5077 | | - | |
5078 | | - | |
| 5076 | + | |
| 5077 | + | |
| 5078 | + | |
| 5079 | + | |
| 5080 | + | |
| 5081 | + | |
5079 | 5082 | | |
| 5083 | + | |
| 5084 | + | |
| 5085 | + | |
5080 | 5086 | | |
5081 | 5087 | | |
5082 | 5088 | | |
| |||
0 commit comments