summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorMaksim Panchenko <maks@fb.com>2023-02-24 15:45:21 -0800
committerMaksim Panchenko <maks@fb.com>2023-02-27 15:21:16 -0800
commit03e94f66087ea48a6321738130bdf85e714ad281 (patch)
tree002e06e9e3f51dc658b9cd0cdc499c30fcf930c6 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent964997a143cfa0356d1cd21eb3e6d2170c975c38 (diff)
[BOLT] Change call count output for ICF
ICF optimization runs multiple passes and the order in which functions are folded could be dependent on the order they are being processed. This order is indeterministic as functions are intermediately stored in std::unordered_map<>. Note that this order is mostly stable, but is not guaranteed to be and can change e.g. after switching to a different C++ library implementation. Because the processing (and folding) order is indeterministic, the previous way of calculating merged function call count could produce different results. Change the way we calculate the ICF call count to make it independent of the function folding/processing order. Mostly NFC as the output binary should remain the same, the change affects only the console output. Reviewed By: yota9 Differential Revision: https://reviews.llvm.org/D144807
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions