llvm-project
1585db45 - [IR] Optimize CFI in `writeCombinedGlobalValueSummary` (#130382)

Commit
207 days ago
[IR] Optimize CFI in `writeCombinedGlobalValueSummary` (#130382) 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.
Author
Parents
Loading