summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-10 11:31:52 -0400
committerTom Stellard <[email protected]>2012-05-10 11:34:32 -0400
commitfa3747ff2ce929ceda499fde93927354685f20ef (patch)
treebd142af6e4a9562e8afe9d2b479944379c2e823d /src/gallium/drivers/radeon
parent839cbd785356f3d840fdc5087595126e56555291 (diff)
radeon/llvm: Delete all instructions that have been custom lowered
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/R600ISelLowering.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeon/R600ISelLowering.cpp b/src/gallium/drivers/radeon/R600ISelLowering.cpp
index 52e2bd8d3f3..cfea2c3f3c0 100644
--- a/src/gallium/drivers/radeon/R600ISelLowering.cpp
+++ b/src/gallium/drivers/radeon/R600ISelLowering.cpp
@@ -98,7 +98,6 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(AMDIL::COPY))
.addOperand(MI->getOperand(0))
.addReg(ConstantReg);
- MI->eraseFromParent();
break;
}
@@ -107,7 +106,6 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
int64_t RegIndex = MI->getOperand(1).getImm();
addLiveIn(MI, MF, MRI, TII,
AMDIL::R600_TReg32RegClass.getRegister(RegIndex));
- MI->eraseFromParent();
break;
}
case AMDIL::STORE_OUTPUT:
@@ -121,7 +119,6 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
if (!MRI.isLiveOut(OutputReg)) {
MRI.addLiveOut(OutputReg);
}
- MI->eraseFromParent();
break;
}
@@ -132,11 +129,11 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter(
unsigned ReservedReg =
AMDIL::R600_TReg32RegClass.getRegister(ReservedIndex);
MFI->ReservedRegs.push_back(ReservedReg);
- MI->eraseFromParent();
break;
}
}
+ MI->eraseFromParent();
return BB;
}