diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-22 05:45:19 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-22 05:45:19 +0000 |
commit | 0c54197d31d178b96c9ee1fcde3f4722c637b91c (patch) | |
tree | b6833be40924cda6429dec23057f182ce22ea42d /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 1f0c1c4f471943abe19cf7977998422665395115 (diff) | |
download | llvm-0c54197d31d178b96c9ee1fcde3f4722c637b91c.zip llvm-0c54197d31d178b96c9ee1fcde3f4722c637b91c.tar.gz llvm-0c54197d31d178b96c9ee1fcde3f4722c637b91c.tar.bz2 |
SDAG: Give SDDbgValues their own allocator (and reset it)
Previously `SDDbgValue`s used the general allocator that lives for all
of `SelectionDAG`. Instead, give them their own allocator, and reset it
whenever `SDDbgInfo::clear()` is called, plugging a spiritual leak.
This drops `SelectionDAGBuilder::visitIntrinsicCall()` off of my heap
profile (was at around 2% of `llc` for codegen of `-flto -g`). Thanks
to Pete Cooper for spotting the problem and suggesting the fix.
llvm-svn: 237998
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions