summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2019-10-09 21:36:03 +0000
committerWei Mi <wmi@google.com>2019-10-09 21:36:03 +0000
commit09dcfe68057082207f47da230c1c2618ce3aadca (patch)
treeceab2036ebef32ed507dee17bc6f13e7f5bcb712 /lldb/source/Plugins/ScriptInterpreter/Python
parent411497c6c714d43f30c6942ca0e98ecc0e800744 (diff)
downloadbcm5719-llvm-09dcfe68057082207f47da230c1c2618ce3aadca.tar.gz
bcm5719-llvm-09dcfe68057082207f47da230c1c2618ce3aadca.zip
[SampleFDO] Add indexing for function profiles so they can be loaded on demand
in ExtBinary format Currently for Text, Binary and ExtBinary format profiles, when we compile a module with samplefdo, even if there is no function showing up in the profile, we have to load all the function profiles from the profile input. That is a waste of compile time. CompactBinary format profile has already had the support of loading function profiles on demand. In this patch, we add the support to load profile on demand for ExtBinary format. It will work no matter the sections in ExtBinary format profile are compressed or not. Experiment shows it reduces the time to compile a server benchmark by 30%. When profile remapping and loading function profiles on demand are both used, extra work needs to be done so that the loading on demand process will take the name remapping into consideration. It will be addressed in a follow-up patch. Differential Revision: https://reviews.llvm.org/D68601 llvm-svn: 374233
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud