diff options
author | Tom Stellard <[email protected]> | 2012-05-08 13:08:29 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-08 15:47:46 -0400 |
commit | a8d82c44f79e27d2b78458f9ea560c73eef3d3b5 (patch) | |
tree | 8ccab60297b2cb83e80eba498a0e048a325311f7 /src/gallium/drivers/radeon/R600ISelLowering.cpp | |
parent | 8a4c25dd7e9002ab7a2821753bcae1ff6af2ca1c (diff) |
radeon/llvm: Remove the EXPORT_REG instruction
Diffstat (limited to 'src/gallium/drivers/radeon/R600ISelLowering.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/R600ISelLowering.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/R600ISelLowering.cpp b/src/gallium/drivers/radeon/R600ISelLowering.cpp index 7e1c17dfcaf..bee59cc0d7b 100644 --- a/src/gallium/drivers/radeon/R600ISelLowering.cpp +++ b/src/gallium/drivers/radeon/R600ISelLowering.cpp @@ -100,13 +100,12 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter( case AMDIL::STORE_OUTPUT: { MachineBasicBlock::iterator I = *MI; - int64_t OutputIndex = MI->getOperand(2).getImm(); + int64_t OutputIndex = MI->getOperand(1).getImm(); unsigned OutputReg = AMDIL::R600_TReg32RegClass.getRegister(OutputIndex); BuildMI(*BB, I, BB->findDebugLoc(I), TII->get(AMDIL::COPY), OutputReg) - .addOperand(MI->getOperand(1)); + .addOperand(MI->getOperand(0)); - MRI.replaceRegWith(MI->getOperand(0).getReg(), OutputReg); if (!MRI.isLiveOut(OutputReg)) { MRI.addLiveOut(OutputReg); } |