aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorAmir Ayupov <aaupov@fb.com>2024-11-08 16:39:33 -0800
committerGitHub <noreply@github.com>2024-11-08 16:39:33 -0800
commit7ec682b16b49c754d5b4aa6347f8f5a00bd7dd78 (patch)
treefe290d15a18425ba0bfef0e6af2a6d975345199b /llvm/lib/CodeGen/MachineCSE.cpp
parentf791cfc822fab3fa87b4aa10ef96a3401481850f (diff)
downloadllvm-7ec682b16b49c754d5b4aa6347f8f5a00bd7dd78.zip
llvm-7ec682b16b49c754d5b4aa6347f8f5a00bd7dd78.tar.gz
llvm-7ec682b16b49c754d5b4aa6347f8f5a00bd7dd78.tar.bz2
[MC] Use StringRefs from pseudo_probe_desc section if it's mapped
Add `IsMMapped` flag to `buildGUID2FuncDescMap` controlling whether to allocate a string in `FuncNameAllocator` or use StringRef directly. Keep it false by default, only set it for BOLT use case because BOLT keeps file sections in memory while processing them. llvm-profgen constructs GUID2FuncDescMap and then releases the binary. For medium sized binary with 0.8 GiB .pseudo_probe_desc section, this saves 0.7 GiB peak RSS in perf2bolt. Test Plan: no-op for llvm-profgen, NFC for perf2bolt Reviewers: maksfb, dcci, wlei-llvm, rafaelauler, ayermolo Reviewed By: wlei-llvm Pull Request: https://github.com/llvm/llvm-project/pull/112996
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions