https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/112996
Add `IsMMapped` flag to `buildGUID2FuncDescMap` controlling whether to allocate a string in `FuncNameAllocator` or use StringRef directly. This saves ~0.7 GiB peak RSS in perf2bolt processing a medium sized binary with ~0.8 GiB .pseudo_probe_desc section. This is because BOLT keeps file sections in memory while processing them whereas llvm-profgen constructs GUID2FuncDescMap and then releases the binary. Test Plan: no-op for llvm-profgen, NFC for perf2bolt _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits