diff options
author | Kazu Hirata <kazu@google.com> | 2023-09-22 17:29:10 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-09-22 17:29:10 -0700 |
commit | ce8c22856e3526ee7ab8ff037cdd7a7e1670c4a7 (patch) | |
tree | d0e1d68fca196a1243d8f7465ddbbc0955a77bb8 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | 3bca65955668b478bcf2cac49f1731f20da8da9c (diff) | |
download | llvm-ce8c22856e3526ee7ab8ff037cdd7a7e1670c4a7.zip llvm-ce8c22856e3526ee7ab8ff037cdd7a7e1670c4a7.tar.gz llvm-ce8c22856e3526ee7ab8ff037cdd7a7e1670c4a7.tar.bz2 |
Use llvm::drop_begin and llvm::drop_end (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCopyPropagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp index 488ef31e..a032b31 100644 --- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp +++ b/llvm/lib/CodeGen/MachineCopyPropagation.cpp @@ -1147,11 +1147,11 @@ void MachineCopyPropagation::EliminateSpillageCopies(MachineBasicBlock &MBB) { return; // If violate property#2, we don't fold the chain. - for (const MachineInstr *Spill : make_range(SC.begin() + 1, SC.end())) + for (const MachineInstr *Spill : drop_begin(SC)) if (CopySourceInvalid.count(Spill)) return; - for (const MachineInstr *Reload : make_range(RC.begin(), RC.end() - 1)) + for (const MachineInstr *Reload : drop_end(RC)) if (CopySourceInvalid.count(Reload)) return; |