[all-commits] [llvm/llvm-project] 28c0d9: [mlir] Use llvm::append_range (NFC) (#136257)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Fri Apr 18 12:04:11 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28c0d9d37c1f088855119ec4488943d2b4cded8c
https://github.com/llvm/llvm-project/commit/28c0d9d37c1f088855119ec4488943d2b4cded8c
Author: Kazu Hirata <kazu at google.com>
Date: 2025-04-18 (Fri, 18 Apr 2025)
Changed paths:
M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
M mlir/lib/Dialect/SCF/IR/SCF.cpp
M mlir/lib/Dialect/Traits.cpp
Log Message:
-----------
[mlir] Use llvm::append_range (NFC) (#136257)
This patch replaces:
llvm::copy(Src, std::back_inserter(Dst));
with:
llvm::append_range(Dst, Src);
for breavity.
One side benefit is that llvm::append_range eventually calls
llvm::SmallVector::reserve if Dst is of llvm::SmallVector.
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