diff options
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZShortenInst.cpp')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZShortenInst.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp index 3d27b70d6ef9..254e5e92449b 100644 --- a/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp +++ b/llvm/lib/Target/SystemZ/SystemZShortenInst.cpp @@ -211,8 +211,7 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) { LiveRegs.addLiveOuts(MBB); // Iterate backwards through the block looking for instructions to change. - for (auto MBBI = MBB.rbegin(), MBBE = MBB.rend(); MBBI != MBBE; ++MBBI) { - MachineInstr &MI = *MBBI; + for (MachineInstr &MI : llvm::reverse(MBB)) { switch (MI.getOpcode()) { case SystemZ::IILF: Changed |= shortenIIF(MI, SystemZ::LLILL, SystemZ::LLILH); |
