comparison lib/Target/Lanai/LanaiDelaySlotFiller.cpp @ 147:c2174574ed3a

LLVM 10
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Aug 2019 16:55:33 +0900
parents 3a76565eade5
children
comparison
equal deleted inserted replaced
134:3a76565eade5 147:c2174574ed3a
1 //===-- LanaiDelaySlotFiller.cpp - Lanai delay slot filler ----------------===// 1 //===-- LanaiDelaySlotFiller.cpp - Lanai delay slot filler ----------------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // 4 // See https://llvm.org/LICENSE.txt for license information.
5 // This file is distributed under the University of Illinois Open Source 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 // License. See LICENSE.TXT for details.
7 // 6 //
8 //===----------------------------------------------------------------------===// 7 //===----------------------------------------------------------------------===//
9 // 8 //
10 // Simple pass to fills delay slots with useful instructions. 9 // Simple pass to fills delay slots with useful instructions.
11 // 10 //
154 bool SawStore = false; 153 bool SawStore = false;
155 154
156 for (MachineBasicBlock::reverse_instr_iterator I = ++Slot.getReverse(); 155 for (MachineBasicBlock::reverse_instr_iterator I = ++Slot.getReverse();
157 I != MBB.instr_rend(); ++I) { 156 I != MBB.instr_rend(); ++I) {
158 // skip debug value 157 // skip debug value
159 if (I->isDebugValue()) 158 if (I->isDebugInstr())
160 continue; 159 continue;
161 160
162 // Convert to forward iterator. 161 // Convert to forward iterator.
163 MachineBasicBlock::instr_iterator FI = I.getReverse(); 162 MachineBasicBlock::instr_iterator FI = I.getReverse();
164 163