[all-commits] [llvm/llvm-project] 53d3d1: [SLPVectorizer] Avoid two successive hash lookups ...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Sep 3 14:51:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53d3d1ab9abf28e92a27fce0a99ae83720d27d75
      https://github.com/llvm/llvm-project/commit/53d3d1ab9abf28e92a27fce0a99ae83720d27d75
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-09-03 (Tue, 03 Sep 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  [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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list