diff options
author | Krasimir Georgiev <krasimir@google.com> | 2018-10-24 15:18:51 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2018-10-24 15:18:51 +0000 |
commit | 09ea204964af51393078416a8668e402eb772263 (patch) | |
tree | b77653a79f7c743b706d96fb1e5337cb0d3214df /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | d7babe4e1247ce6144b0c7e44ea762b476503254 (diff) | |
download | bcm5719-llvm-09ea204964af51393078416a8668e402eb772263.tar.gz bcm5719-llvm-09ea204964af51393078416a8668e402eb772263.zip |
IR: Optimize FunctionType::get to perform one hash lookup instead of two, NFCI
Summary: This function was performing two hash lookups when a new function type was requested: first checking if it exists and second to insert it. This patch updates the function to perform a single hash lookup in this case by updating the value in the hash table in-place in case the function type was not there before.
Reviewers: bkramer
Reviewed By: bkramer
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D53471
llvm-svn: 345151
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions