[all-commits] [llvm/llvm-project] e0295a: [ADT] Use perfect forwarding in SmallSet::insert()

Victor Campos via All-commits all-commits at lists.llvm.org
Fri Sep 13 08:40:00 PDT 2024


  Branch: refs/heads/users/vhscampos/smallset-insert-perfect-forwarding
  Home:   https://github.com/llvm/llvm-project
  Commit: e0295a14694c5bba65a873914eb700b201e94b6a
      https://github.com/llvm/llvm-project/commit/e0295a14694c5bba65a873914eb700b201e94b6a
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2024-09-13 (Fri, 13 Sep 2024)

  Changed paths:
    M llvm/include/llvm/ADT/SmallSet.h

  Log Message:
  -----------
  [ADT] Use perfect forwarding in SmallSet::insert()

Previously this method took arguments by const-ref. This patch changes
the implementation to take perfectly forwarded arguments in the form of
a universal reference. Now, the insertion method will take advantage of
arguments passed as rvalue, potentially leading to performance
improvements.



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