[all-commits] [llvm/llvm-project] 0cd8fd: [lld] Add explicit std::move(...) to avoid a few v...
serge-sans-paille via All-commits
all-commits at lists.llvm.org
Mon Feb 9 03:59:26 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0cd8fd974dd674cab2f53cedeb674622413561bd
https://github.com/llvm/llvm-project/commit/0cd8fd974dd674cab2f53cedeb674622413561bd
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2026-02-09 (Mon, 09 Feb 2026)
Changed paths:
M lld/COFF/Driver.cpp
M lld/wasm/OutputSections.cpp
M lld/wasm/Writer.cpp
Log Message:
-----------
[lld] Add explicit std::move(...) to avoid a few vector copies (#180474)
In corner cases, it is profitable to move an llvm::SmallString instead
of copying it.
It is almost always profitable to move an std::vector
Changes suggested by performance-use-std-move from
https://github.com/llvm/llvm-project/pull/179467
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