[all-commits] [llvm/llvm-project] 91cc53: [llvm-profgen] Do not cache the frame location sta...
ictwanglei via All-commits
all-commits at lists.llvm.org
Tue Oct 25 21:11:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91cc53d5a455e807507b08ca976e266621da07a8
https://github.com/llvm/llvm-project/commit/91cc53d5a455e807507b08ca976e266621da07a8
Author: wlei <wlei at fb.com>
Date: 2022-10-25 (Tue, 25 Oct 2022)
Changed paths:
M llvm/tools/llvm-profgen/ProfileGenerator.cpp
M llvm/tools/llvm-profgen/ProfiledBinary.cpp
M llvm/tools/llvm-profgen/ProfiledBinary.h
Log Message:
-----------
[llvm-profgen] Do not cache the frame location stack during computing inlined context size
In `computeInlinedContextSizeForRange`, the offset of range is only used one time, there is no need to cache the frame location stack.
Measured on one internal service binary, this can save 2GB memory usage and reduce a small run time (avoid one hash search).
Reviewed By: hoy, wenlei
Differential Revision: https://reviews.llvm.org/D128859
More information about the All-commits
mailing list