diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-01-28 15:08:09 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-01-28 15:08:09 +0000 |
commit | beb43ba7e5b5524ad0296a4d1f1271e0212ddd33 (patch) | |
tree | f51173fca2837c2f6ffaaa2128dbf4ae2553e97e /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h | |
parent | ea59b9d91f072bf7f6fccf2c1c566c9e0f060369 (diff) | |
download | bcm5719-llvm-beb43ba7e5b5524ad0296a4d1f1271e0212ddd33.tar.gz bcm5719-llvm-beb43ba7e5b5524ad0296a4d1f1271e0212ddd33.zip |
Improve efficiency of handling unmapped subprogram metadata
The stripNullSubprograms function is very inefficient because
it walks all subprograms in all compile units in the dest module
any time a new module is linked in. For LTO in particular this will
get increasingly expensive as more modules are linked.
This patch improves the efficiency in several ways. The first is that
no scanning is necessary when there were no unneeded subprograms
identified in the first place. The second is that only the newly-linked
module's compile unit metadata should be examined.
Fixes PR26346.
llvm-svn: 259049
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h')
0 files changed, 0 insertions, 0 deletions