summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-01-18 16:12:17 +0100
committerNikita Popov <npopov@redhat.com>2022-01-18 17:02:14 +0100
commitcbaae614224211d01b385227e7efb447c87fc3ce (patch)
treeb4bae8e1edaef52edf027af9bff7c278586f024c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
parent4afa9c17262cbca3f85352c8d3f352639f83e0b3 (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/ScriptedPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions