diff options
author | Sean Callanan <scallanan@apple.com> | 2013-04-27 02:19:33 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-04-27 02:19:33 +0000 |
commit | df56540a58271deae8b0da7ccd11141f73bd0e84 (patch) | |
tree | 005507236d499afe698cbf5eb2b36e4312f89fa9 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 956dca92888ebb3f770307d16f563c0e47cc0a39 (diff) | |
download | llvm-df56540a58271deae8b0da7ccd11141f73bd0e84.zip llvm-df56540a58271deae8b0da7ccd11141f73bd0e84.tar.gz llvm-df56540a58271deae8b0da7ccd11141f73bd0e84.tar.bz2 |
Performance optimizations to ClangUserExpression,
mostly related to management of the stack frame
for the interpreter.
- First, if the expression can be interpreted,
allocate the stack frame in the target process
(to make sure pointers are valid) but only
read/write to the copy in the host's memory.
- Second, keep the memory allocations for the
stack frame and the materialized struct as
member variables of ClangUserExpression. This
avoids memory allocations and deallocations
each time the expression runs.
<rdar://problem/13043685>
llvm-svn: 180664
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions