diff options
author | Krasimir Georgiev <krasimir@google.com> | 2018-10-25 13:38:07 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2018-10-25 13:38:07 +0000 |
commit | 142919bc23f1abf986fc061947f45120af63396d (patch) | |
tree | 424bea338852f757d1485ea4487bb2bec4e3d787 /lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c | |
parent | 53e8e145e9f3908e31f89de347819ec17a1160ea (diff) | |
download | bcm5719-llvm-142919bc23f1abf986fc061947f45120af63396d.tar.gz bcm5719-llvm-142919bc23f1abf986fc061947f45120af63396d.zip |
IR: Optimize StructType::get to perform one hash lookup instead of two, NFCI
Summary:
This function was performing two hash lookups when a new struct 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 struct type was not there before.
Similar to r345151.
Reviewers: bkramer
Reviewed By: bkramer
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D53689
llvm-svn: 345264
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c')
0 files changed, 0 insertions, 0 deletions