mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Remove non-DebugLoc versions of buildMI from Sparc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -84,6 +84,7 @@ bool FPMover::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
|
||||
bool Changed = false;
|
||||
for (MachineBasicBlock::iterator I = MBB.begin(); I != MBB.end(); ) {
|
||||
MachineInstr *MI = I++;
|
||||
DebugLoc dl = MI->getDebugLoc();
|
||||
if (MI->getOpcode() == SP::FpMOVD || MI->getOpcode() == SP::FpABSD ||
|
||||
MI->getOpcode() == SP::FpNEGD) {
|
||||
Changed = true;
|
||||
@@ -114,7 +115,7 @@ bool FPMover::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
|
||||
DOUT << "FPMover: the modified instr is: " << *MI;
|
||||
// Insert copy for the other half of the double.
|
||||
if (DestDReg != SrcDReg) {
|
||||
MI = BuildMI(MBB, I, TM.getInstrInfo()->get(SP::FMOVS), OddDestReg)
|
||||
MI = BuildMI(MBB, I, dl, TM.getInstrInfo()->get(SP::FMOVS), OddDestReg)
|
||||
.addReg(OddSrcReg);
|
||||
DOUT << "FPMover: the inserted instr is: " << *MI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user