diff options
author | David Greene <greened@obbligato.org> | 2009-11-12 21:07:54 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-11-12 21:07:54 +0000 |
commit | 7cf326aed4b73e6ad478f7c05525fa023487d0c9 (patch) | |
tree | 365fb6cf7ef24adf7787b323a66c37e087afacca /llvm/lib/CodeGen/VirtRegRewriter.cpp | |
parent | c71bf467d5150634dfd43454a3b11b1fc5a4ac61 (diff) | |
download | bcm5719-llvm-7cf326aed4b73e6ad478f7c05525fa023487d0c9.tar.gz bcm5719-llvm-7cf326aed4b73e6ad478f7c05525fa023487d0c9.zip |
Set the ReloadReuse AsmPrinter flag where appropriate.
llvm-svn: 87030
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegRewriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegRewriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegRewriter.cpp b/llvm/lib/CodeGen/VirtRegRewriter.cpp index fd80f460992..e357214b8a2 100644 --- a/llvm/lib/CodeGen/VirtRegRewriter.cpp +++ b/llvm/lib/CodeGen/VirtRegRewriter.cpp @@ -1704,6 +1704,7 @@ private: // Mark is killed. MachineInstr *CopyMI = prior(InsertLoc); + CopyMI->setAsmPrinterFlag(AsmPrinter::ReloadReuse); MachineOperand *KillOpnd = CopyMI->findRegisterUseOperand(InReg); KillOpnd->setIsKill(); UpdateKills(*CopyMI, TRI, RegKills, KillOps); @@ -1984,6 +1985,7 @@ private: TII->copyRegToReg(MBB, InsertLoc, DesignatedReg, PhysReg, RC, RC); MachineInstr *CopyMI = prior(InsertLoc); + CopyMI->setAsmPrinterFlag(AsmPrinter::ReloadReuse); UpdateKills(*CopyMI, TRI, RegKills, KillOps); // This invalidates DesignatedReg. @@ -2112,6 +2114,7 @@ private: // virtual or needing to clobber any values if it's physical). NextMII = &MI; --NextMII; // backtrack to the copy. + NextMII->setAsmPrinterFlag(AsmPrinter::ReloadReuse); // Propagate the sub-register index over. if (SubIdx) { DefMO = NextMII->findRegisterDefOperand(DestReg); |