CodeGen: Use MachineInstr& in ExpandISelPseudos, NFC

Avoid another implicit conversion from MachineInstrBundleIterator to
MachineInstr* by using MachineInstr&.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2016-06-30 23:09:39 +00:00
parent e4756450e1
commit b6b73f6780

View File

@ -53,12 +53,12 @@ bool ExpandISelPseudos::runOnMachineFunction(MachineFunction &MF) {
MachineBasicBlock *MBB = &*I;
for (MachineBasicBlock::iterator MBBI = MBB->begin(), MBBE = MBB->end();
MBBI != MBBE; ) {
MachineInstr *MI = MBBI++;
MachineInstr &MI = *MBBI++;
// If MI is a pseudo, expand it.
if (MI->usesCustomInsertionHook()) {
if (MI.usesCustomInsertionHook()) {
Changed = true;
MachineBasicBlock *NewMBB = TLI->EmitInstrWithCustomInserter(*MI, MBB);
MachineBasicBlock *NewMBB = TLI->EmitInstrWithCustomInserter(MI, MBB);
// The expansion may involve new basic blocks.
if (NewMBB != MBB) {
MBB = NewMBB;