diff options
author | Tom Stellard <[email protected]> | 2012-05-08 10:01:58 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-08 15:47:45 -0400 |
commit | ad385c402e665b2aedc7b456575d19df32584e73 (patch) | |
tree | 4ea5067714c75893931f5bc19e9af376aa3a418f /src/gallium/drivers/radeon/R600ISelLowering.cpp | |
parent | 52a7f212d36bd9829494bd588ecb9a3ebe9fc28a (diff) |
radeon/llvm: Use a custom inserter to lower LOAD_INPUT
Diffstat (limited to 'src/gallium/drivers/radeon/R600ISelLowering.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/R600ISelLowering.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/R600ISelLowering.cpp b/src/gallium/drivers/radeon/R600ISelLowering.cpp index 9e3b6b5958b..d35669e1174 100644 --- a/src/gallium/drivers/radeon/R600ISelLowering.cpp +++ b/src/gallium/drivers/radeon/R600ISelLowering.cpp @@ -88,8 +88,15 @@ MachineBasicBlock * R600TargetLowering::EmitInstrWithCustomInserter( case AMDIL::LOCAL_SIZE_Z: lowerImplicitParameter(MI, *BB, MRI, 8); break; + case AMDIL::LOAD_INPUT: + { + int64_t RegIndex = MI->getOperand(1).getImm(); + addLiveIn(MI, MF, MRI, TII, + AMDIL::R600_TReg32RegClass.getRegister(RegIndex)); + MI->eraseFromParent(); + break; + } } - MI->eraseFromParent(); return BB; } |