diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2013-05-06 23:02:15 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2013-05-06 23:02:15 +0000 |
| commit | e363dbf7ebd76cc09e8a290489ff77c694181ef6 (patch) | |
| tree | 94dd4de77274a78b924a1411edb9bac2cf6e455f /llvm/lib | |
| parent | 353b336e8c23bacb998c78342568f21690b532ba (diff) | |
| download | bcm5719-llvm-e363dbf7ebd76cc09e8a290489ff77c694181ef6.tar.gz bcm5719-llvm-e363dbf7ebd76cc09e8a290489ff77c694181ef6.zip | |
R600/SI: Handle arbitrary destination type in SITargetLowering::adjustWritemask
Patch by: Michel Dänzer
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 181268
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/R600/SIISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/SIISelLowering.cpp b/llvm/lib/Target/R600/SIISelLowering.cpp index 1a07affc195..6bd82a5d774 100644 --- a/llvm/lib/Target/R600/SIISelLowering.cpp +++ b/llvm/lib/Target/R600/SIISelLowering.cpp @@ -756,7 +756,7 @@ void SITargetLowering::adjustWritemask(MachineSDNode *&Node, if (Writemask == (1U << Lane)) { SDValue RC = DAG.getTargetConstant(AMDGPU::VReg_32RegClassID, MVT::i32); SDNode *Copy = DAG.getMachineNode(TargetOpcode::COPY_TO_REGCLASS, - DebugLoc(), MVT::f32, + DebugLoc(), Users[Lane]->getValueType(0), SDValue(Node, 0), RC); DAG.ReplaceAllUsesWith(Users[Lane], Copy); return; |

