Commit c784d32
authored
[ThinLTO] Use heterogenous lookups with std::map (NFC) (llvm#115812)
Heterogenous lookups allow us to call find with StringRef, avoiding a
temporary heap allocation of std::string.1 parent dfb864a commit c784d32
File tree
3 files changed
+20
-11
lines changed- llvm
- include/llvm/IR
- lib
- Bitcode/Reader
- Transforms/IPO
3 files changed
+20
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | | - | |
1403 | | - | |
| 1402 | + | |
| 1403 | + | |
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| |||
1647 | 1647 | | |
1648 | 1648 | | |
1649 | 1649 | | |
1650 | | - | |
1651 | | - | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1652 | 1656 | | |
1653 | | - | |
1654 | | - | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1655 | 1663 | | |
1656 | 1664 | | |
1657 | 1665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7959 | 7959 | | |
7960 | 7960 | | |
7961 | 7961 | | |
7962 | | - | |
| 7962 | + | |
| 7963 | + | |
7963 | 7964 | | |
7964 | 7965 | | |
7965 | 7966 | | |
7966 | 7967 | | |
7967 | 7968 | | |
7968 | 7969 | | |
7969 | 7970 | | |
7970 | | - | |
| 7971 | + | |
| 7972 | + | |
7971 | 7973 | | |
7972 | 7974 | | |
7973 | 7975 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2037 | 2037 | | |
2038 | 2038 | | |
2039 | 2039 | | |
2040 | | - | |
| 2040 | + | |
2041 | 2041 | | |
2042 | | - | |
2043 | | - | |
| 2042 | + | |
2044 | 2043 | | |
2045 | 2044 | | |
2046 | 2045 | | |
| |||
0 commit comments