diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-18 10:16:36 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-18 10:16:36 -0800 |
commit | 23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c (patch) | |
tree | 97bf416d1172a0afe155a7494f4a1f22330b2011 /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | |
parent | dc300beba7a849aac44c39ccc450a575db99bc14 (diff) | |
download | llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.zip llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.tar.gz llvm-23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c.tar.bz2 |
[llvm] Use the default value of drop_begin (NFC)
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp index b106b82..d474b9a 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp @@ -342,7 +342,7 @@ static bool isSafeToMove(const MachineOperand *Def, const MachineOperand *Use, // instruction in which the current value is used, we cannot // stackify. Stackifying in this case would require that def moving below the // current def in the stack, which cannot be achieved, even with locals. - for (const auto &SubsequentDef : drop_begin(DefI->defs(), 1)) { + for (const auto &SubsequentDef : drop_begin(DefI->defs())) { for (const auto &PriorUse : UseI->uses()) { if (&PriorUse == Use) break; @@ -701,7 +701,7 @@ public: MachineOperand &pop() { RangeTy &Range = Worklist.back(); MachineOperand &Op = *Range.begin(); - Range = drop_begin(Range, 1); + Range = drop_begin(Range); if (Range.empty()) Worklist.pop_back(); assert((Worklist.empty() || !Worklist.back().empty()) && |