diff options
| author | wlei <wlei@fb.com> | 2021-09-23 22:53:12 -0700 |
|---|---|---|
| committer | wlei <wlei@fb.com> | 2021-09-24 14:15:05 -0700 |
| commit | 28277e9b48601dee7027ba6ed50554db821ba09b (patch) | |
| tree | 8e812754d23bdd4c93c11d103a39df1d0418fcc5 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp | |
| parent | b45476c94ce8ea94e2ad4d93ceda00eb4078e682 (diff) | |
[AutoFDO][llvm-profgen] Report zero count for unexecuted part of function code
In order to be consistent with compiler that interprets zero count as unexecuted(cold), this change reports zero-value count for unexecuted part of function code. For the implementation, it leverages the range counter, initializes all the executed function range with the zero-value. After all ranges are merged and converted into disjoint ranges, the remaining zero count will indicates the unexecuted(cold) part of the function.
This change also extends the current `findDisjointRanges` method which now can support adding zero-value range.
Reviewed By: hoy, wenlei
Differential Revision: https://reviews.llvm.org/D109713
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp')
0 files changed, 0 insertions, 0 deletions
