Commit d1a6eaa
authored
[Attributor][NFC] Performance improvements (llvm#122923)
` forallInterferingAccesses` is a hotspot and for large modules these
changes make a measurable improvement in compilation time.
For LTO kernel compilation of 519.clvleaf (SPEChpc 2021) I measured the
following:
```
| Measured times (s) | Average | speedup
--------------------+------------------------+---------+---------
Baseline | 33.268 33.332 33.275 | 33.292 | 0%
Cache "kernel" | 30.543 30.339 30.607 | 30.496 | 9.2%
templatize callback | 30.981 30.97 30.964 | 30.972 | 7.5%
Both changes | 29.284 29.201 29.053 | 29.179 | 14.1%
```1 parent 63d3bd6 commit d1a6eaa
File tree
3 files changed
+23
-14
lines changed- llvm
- include/llvm/Transforms/IPO
- lib/Transforms/IPO
3 files changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1290 | 1296 | | |
1291 | 1297 | | |
1292 | 1298 | | |
| |||
1361 | 1367 | | |
1362 | 1368 | | |
1363 | 1369 | | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
1364 | 1373 | | |
1365 | 1374 | | |
1366 | 1375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
| 681 | + | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| |||
3191 | 3191 | | |
3192 | 3192 | | |
3193 | 3193 | | |
| 3194 | + | |
| 3195 | + | |
3194 | 3196 | | |
3195 | 3197 | | |
3196 | 3198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
889 | | - | |
890 | | - | |
| 888 | + | |
| 889 | + | |
891 | 890 | | |
892 | 891 | | |
893 | 892 | | |
| |||
906 | 905 | | |
907 | 906 | | |
908 | 907 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
913 | 911 | | |
914 | 912 | | |
915 | 913 | | |
| |||
1176 | 1174 | | |
1177 | 1175 | | |
1178 | 1176 | | |
1179 | | - | |
| 1177 | + | |
1180 | 1178 | | |
1181 | 1179 | | |
1182 | 1180 | | |
| |||
1210 | 1208 | | |
1211 | 1209 | | |
1212 | 1210 | | |
1213 | | - | |
| 1211 | + | |
1214 | 1212 | | |
1215 | 1213 | | |
1216 | 1214 | | |
| |||
1222 | 1220 | | |
1223 | 1221 | | |
1224 | 1222 | | |
1225 | | - | |
1226 | | - | |
| 1223 | + | |
| 1224 | + | |
1227 | 1225 | | |
1228 | 1226 | | |
1229 | 1227 | | |
| |||
1238 | 1236 | | |
1239 | 1237 | | |
1240 | 1238 | | |
1241 | | - | |
| 1239 | + | |
1242 | 1240 | | |
1243 | 1241 | | |
1244 | 1242 | | |
| |||
0 commit comments