In the individual index files emitted for distributed ThinLTO backends,
the module path ids are not contiguous. Assign slots to module paths in
order to handle this better and also to get contiguous numbering in the
summary assembly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/IR/AsmWriter.cpp | ||
---|---|---|
1019 ↗ | (On Diff #153243) | No, there are 2 loops for the reason noted in the comments: Since the StringMap iteration order isn't // guaranteed, use a std::map to order by module ID before assigning slots. |
1119 ↗ | (On Diff #153243) | Will do as a follow-on (I named this similar to the existing "initialize()" which does lazy initialization of slots needed for printing the Module. |
Comment Actions
lgtm
lib/IR/AsmWriter.cpp | ||
---|---|---|
790 ↗ | (On Diff #153243) | CreateModulePathSlot is a tiny wrapper which should be marked as inline. I saw a different function is marked instead. |
lib/IR/AsmWriter.cpp | ||
---|---|---|
790 ↗ | (On Diff #153243) | Woops, will fix. |