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/Support/CommandLine.cpp | |
| parent | 956dca92888ebb3f770307d16f563c0e47cc0a39 (diff) | |
| download | bcm5719-llvm-df56540a58271deae8b0da7ccd11141f73bd0e84.tar.gz bcm5719-llvm-df56540a58271deae8b0da7ccd11141f73bd0e84.zip | |
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/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions

