aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/R600LowerInstructions.cpp
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-17 12:08:21 -0400
committerTom Stellard <[email protected]>2012-05-17 14:48:09 -0400
commit9a020092aedc6310d5bfc72b2aa6fc4348fe5c32 (patch)
tree6ffb5f93e5ce9a8669300f274aded15a86aa09c9 /src/gallium/drivers/radeon/R600LowerInstructions.cpp
parent89b945591bb5d434518cea481209b1ea7a435861 (diff)
radeon/llvm: Move lowering of ABS_i32 to ISel
Diffstat (limited to 'src/gallium/drivers/radeon/R600LowerInstructions.cpp')
-rw-r--r--src/gallium/drivers/radeon/R600LowerInstructions.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gallium/drivers/radeon/R600LowerInstructions.cpp b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
index 42c976601e5..2edae320c29 100644
--- a/src/gallium/drivers/radeon/R600LowerInstructions.cpp
+++ b/src/gallium/drivers/radeon/R600LowerInstructions.cpp
@@ -88,22 +88,6 @@ bool R600LowerInstructionsPass::runOnMachineFunction(MachineFunction &MF)
.addOperand(MI.getOperand(1));
break;
- case AMDIL::ABS_i32:
- {
- unsigned neg = MRI->createVirtualRegister(
- &AMDIL::R600_TReg32RegClass);
- BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::SUB_INT),neg)
- .addReg(AMDIL::ZERO)
- .addOperand(MI.getOperand(1));
-
- BuildMI(MBB, I, MBB.findDebugLoc(I), TII->get(AMDIL::MAX_INT))
- .addOperand(MI.getOperand(0))
- .addOperand(MI.getOperand(1))
- .addReg(neg);
-
- break;
- }
-
/* XXX: We could propagate the ABS flag to all of the uses of Operand0 and
* remove the ABS instruction.*/
case AMDIL::FABS_f32: