diff options
author | Kazu Hirata <kazu@google.com> | 2021-02-18 22:46:43 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-02-18 22:46:43 -0800 |
commit | fd04f3a30cbb6506aea1ef0b104ab707c4331241 (patch) | |
tree | 906190087d9ce6fac99a77637aee75fd1c9d5b85 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | 2d5eb67235c763898f7c3327fb97b1ae1307d8e4 (diff) | |
download | llvm-fd04f3a30cbb6506aea1ef0b104ab707c4331241.zip llvm-fd04f3a30cbb6506aea1ef0b104ab707c4331241.tar.gz llvm-fd04f3a30cbb6506aea1ef0b104ab707c4331241.tar.bz2 |
[CodeGen] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 5f97729..d3e75ca 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -1364,8 +1364,8 @@ void SplitEditor::rewriteAssigned(bool ExtendRanges) { void SplitEditor::deleteRematVictims() { SmallVector<MachineInstr*, 8> Dead; - for (LiveRangeEdit::iterator I = Edit->begin(), E = Edit->end(); I != E; ++I){ - LiveInterval *LI = &LIS.getInterval(*I); + for (const Register &R : *Edit) { + LiveInterval *LI = &LIS.getInterval(R); for (const LiveRange::Segment &S : LI->segments) { // Dead defs end at the dead slot. if (S.end != S.valno->def.getDeadSlot()) |