aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-09-03 14:51:00 -0700
committerGitHub <noreply@github.com>2024-09-03 14:51:00 -0700
commit53d3d1ab9abf28e92a27fce0a99ae83720d27d75 (patch)
tree74f8c15c69c81d71bb4cd6f7bd4211c732a68530 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent98bde7fd872c10e49035d5dc5d2f2b44489f6a07 (diff)
downloadllvm-53d3d1ab9abf28e92a27fce0a99ae83720d27d75.zip
llvm-53d3d1ab9abf28e92a27fce0a99ae83720d27d75.tar.gz
llvm-53d3d1ab9abf28e92a27fce0a99ae83720d27d75.tar.bz2
[SLPVectorizer] Avoid two successive hash lookups on the same key (#107143)
This patch replaces the find-try_emplace sequence with just one call to try_emplace, thereby avoiding two successive hash lookups on the same key. I am not using the "inserted" boolean from try_emplace to preserve the original behavior (that is, before PR 107123) that checks to see if the value is nullptr or not.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions