diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:14:29 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-02-27 20:14:29 +0000 |
commit | be8f8c4478dee41e124650fa9d166eaf5dc6b2be (patch) | |
tree | b53b248f768f9dbaf37d7824b865b9cffd394d5f /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | fd8cc23220d25dfe6956470da8bd63d26649c428 (diff) | |
download | bcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.tar.gz bcm5719-llvm-be8f8c4478dee41e124650fa9d166eaf5dc6b2be.zip |
CodeGen: Update LiveIntervalAnalysis API to use MachineInstr&, NFC
These parameters aren't expected to be null, so take them by reference.
llvm-svn: 262151
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 30bcb6da62e..d845b6190e8 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -306,7 +306,7 @@ sink3AddrInstruction(MachineInstr *MI, unsigned SavedReg, MBB->insert(KillPos, MI); if (LIS) - LIS->handleMove(MI); + LIS->handleMove(*MI); ++Num3AddrSunk; return true; @@ -957,7 +957,7 @@ rescheduleMIBelowKill(MachineBasicBlock::iterator &mi, MachineInstr *CopyMI = MBBI; ++MBBI; MBB->splice(InsertPos, MBB, CopyMI); - LIS->handleMove(CopyMI); + LIS->handleMove(*CopyMI); InsertPos = CopyMI; } End = std::next(MachineBasicBlock::iterator(MI)); @@ -969,7 +969,7 @@ rescheduleMIBelowKill(MachineBasicBlock::iterator &mi, // Update live variables if (LIS) { - LIS->handleMove(MI); + LIS->handleMove(*MI); } else { LV->removeVirtualRegisterKilled(Reg, KillMI); LV->addVirtualRegisterKilled(Reg, MI); @@ -1137,7 +1137,7 @@ rescheduleKillAboveMI(MachineBasicBlock::iterator &mi, // Update live variables if (LIS) { - LIS->handleMove(KillMI); + LIS->handleMove(*KillMI); } else { LV->removeVirtualRegisterKilled(Reg, KillMI); LV->addVirtualRegisterKilled(Reg, MI); |