aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-04 00:41:29 -0700
committerGitHub <noreply@github.com>2024-08-04 00:41:29 -0700
commit8d1b17b6623742ec4454f5bae2e23f8b30124314 (patch)
tree5967c3998629a2c4807519ddcc541c83bbde5792 /llvm/lib/CodeGen/MachineScheduler.cpp
parent533190acdb9d2ed774f96a998b5c03be3df4f857 (diff)
downloadllvm-8d1b17b6623742ec4454f5bae2e23f8b30124314.zip
llvm-8d1b17b6623742ec4454f5bae2e23f8b30124314.tar.gz
llvm-8d1b17b6623742ec4454f5bae2e23f8b30124314.tar.bz2
[CodeGen] Construct SmallVector with ArrayRef (NFC) (#101841)
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index a8a1710..7a3cf96 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -1742,8 +1742,8 @@ class BaseMemOpClusterMutation : public ScheduleDAGMutation {
MemOpInfo(SUnit *SU, ArrayRef<const MachineOperand *> BaseOps,
int64_t Offset, bool OffsetIsScalable, LocationSize Width)
- : SU(SU), BaseOps(BaseOps.begin(), BaseOps.end()), Offset(Offset),
- Width(Width), OffsetIsScalable(OffsetIsScalable) {}
+ : SU(SU), BaseOps(BaseOps), Offset(Offset), Width(Width),
+ OffsetIsScalable(OffsetIsScalable) {}
static bool Compare(const MachineOperand *const &A,
const MachineOperand *const &B) {