[all-commits] [llvm/llvm-project] 2a29d2: [ADT] Use perfect forwarding in SmallSet::insert()...
Victor Campos via All-commits
all-commits at lists.llvm.org
Wed Sep 25 04:44:04 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a29d24ba94dac82e838c694595a0a574e505aab
https://github.com/llvm/llvm-project/commit/2a29d24ba94dac82e838c694595a0a574e505aab
Author: Victor Campos <victor.campos at arm.com>
Date: 2024-09-25 (Wed, 25 Sep 2024)
Changed paths:
M llvm/include/llvm/ADT/SmallSet.h
M llvm/unittests/ADT/SmallSetTest.cpp
Log Message:
-----------
[ADT] Use perfect forwarding in SmallSet::insert() (#108590)
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