summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-06-30 23:09:39 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-06-30 23:09:39 +0000
commita62287b3236d176ebdbda5cca6d1f863ec27eee5 (patch)
tree7be1167162b254c243a096a381debe88cf0be0b7
parentfc235eb7800d83af723770e244207530202a44d0 (diff)
downloadbcm5719-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.cpp6
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;
OpenPOWER on IntegriCloud