mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
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:
parent
e4756450e1
commit
b6b73f6780
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user