diff options
author | Tom Stellard <[email protected]> | 2012-05-17 12:08:21 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-17 14:48:09 -0400 |
commit | 9a020092aedc6310d5bfc72b2aa6fc4348fe5c32 (patch) | |
tree | 6ffb5f93e5ce9a8669300f274aded15a86aa09c9 /src/gallium/drivers/radeon/R600LowerInstructions.cpp | |
parent | 89b945591bb5d434518cea481209b1ea7a435861 (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.cpp | 16 |
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: |