[all-commits] [llvm/llvm-project] a79cf0: [MC][NFC] Use vector for GUIDProbeFunctionMap
Amir Ayupov via All-commits
all-commits at lists.llvm.org
Mon Aug 26 09:16:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a79cf0228e4ade1f69e8196fdcf9c0184b4ba1b7
https://github.com/llvm/llvm-project/commit/a79cf0228e4ade1f69e8196fdcf9c0184b4ba1b7
Author: Amir Ayupov <aaupov at fb.com>
Date: 2024-08-26 (Mon, 26 Aug 2024)
Changed paths:
M bolt/lib/Rewrite/PseudoProbeRewriter.cpp
M llvm/include/llvm/MC/MCPseudoProbe.h
M llvm/lib/MC/MCPseudoProbe.cpp
Log Message:
-----------
[MC][NFC] Use vector for GUIDProbeFunctionMap
Replace unordered_map with a vector. Pre-parse the section to statically
allocate storage. Use BumpPtrAllocator for FuncName strings, keep
StringRef in FuncDesc.
Reduces peak RSS of pseudo probe parsing from 9.08 GiB to 8.89 GiB as
part of perf2bolt with a large binary.
Test Plan:
```
bin/llvm-lit -sv test/tools/llvm-profgen
```
Reviewers: wlei-llvm, rafaelauler, dcci, maksfb, ayermolo
Reviewed By: wlei-llvm
Pull Request: https://github.com/llvm/llvm-project/pull/102905
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list