diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 23:09:39 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 23:09:39 +0000 |
commit | a62287b3236d176ebdbda5cca6d1f863ec27eee5 (patch) | |
tree | 7be1167162b254c243a096a381debe88cf0be0b7 | |
parent | fc235eb7800d83af723770e244207530202a44d0 (diff) | |
download | bcm5719-llvm-a62287b3236d176ebdbda5cca6d1f863ec27eee5.tar.gz bcm5719-llvm-a62287b3236d176ebdbda5cca6d1f863ec27eee5.zip |
CodeGen: Use MachineInstr& in ExpandISelPseudos, NFC
Avoid another implicit conversion from MachineInstrBundleIterator to
MachineInstr* by using MachineInstr&.
llvm-svn: 274292
-rw-r--r-- | llvm/lib/CodeGen/ExpandISelPseudos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/ExpandISelPseudos.cpp b/llvm/lib/CodeGen/ExpandISelPseudos.cpp index 37cbba95f11..0ec79c2e69f 100644 --- a/llvm/lib/CodeGen/ExpandISelPseudos.cpp +++ b/llvm/lib/CodeGen/ExpandISelPseudos.cpp @@ -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; |