diff options
| author | Wenlei He <aktoon@gmail.com> | 2019-08-20 20:52:00 +0000 |
|---|---|---|
| committer | Wenlei He <aktoon@gmail.com> | 2019-08-20 20:52:00 +0000 |
| commit | 5adace352d5ef63fe344dc95a375bd33040ea987 (patch) | |
| tree | 8247dcac8fda3ef360d345a46e1a15aa4c35d286 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
| parent | 48e81e8e10ed869f986a256127327713d362eec8 (diff) | |
| download | llvm-5adace352d5ef63fe344dc95a375bd33040ea987.zip llvm-5adace352d5ef63fe344dc95a375bd33040ea987.tar.gz llvm-5adace352d5ef63fe344dc95a375bd33040ea987.tar.bz2 | |
[AutoFDO] Make call targets order deterministic for sample profile
Summary:
StringMap is used for storing call target to frequency map for AutoFDO. However the iterating order of StringMap is non-deterministic, which leads to non-determinism in AutoFDO profile output. Now new API getSortedCallTargets and SortCallTargets are added for deterministic ordering and output.
Roundtrip test for text profile and binary profile is added.
Reviewers: wmi, davidxl, danielcdh
Subscribers: hiraditya, mgrang, llvm-commits, twoh
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66191
llvm-svn: 369440
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions
