diff options
| author | Nikita Popov <npopov@redhat.com> | 2022-01-18 16:12:17 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2022-01-18 17:02:14 +0100 |
| commit | cbaae614224211d01b385227e7efb447c87fc3ce (patch) | |
| tree | b4bae8e1edaef52edf027af9bff7c278586f024c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp | |
| parent | 4afa9c17262cbca3f85352c8d3f352639f83e0b3 (diff) | |
[DebugInstrRef] Use DenseMap for ValueToLoc (NFC)
Just replacing std::map with DenseMap here is a major regression
-- because this code used an identity hash for ValueIDNum.
Because ValueIDNum is composed of multiple components, it is
important that we use a reasonably good hash function here, so
switch it to hash_value. DenseMapInfo::getHashValue<uint64_t>
would not be sufficient.
This gives a -0.8% geomean improvement on CTMark ReleaseLTO-g.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions
