summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-05-06 23:02:15 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-05-06 23:02:15 +0000
commitea73bd8a542f4a943a5a0d23c60777acf9471d87 (patch)
tree7a5c7674b6e68af3b7bc02931045b7207a4df868 /lib/Target
parent651a4c8ee08ccbf59e1a677abc3a2424e50b4c2c (diff)
downloadllvm-ea73bd8a542f4a943a5a0d23c60777acf9471d87.tar.gz
llvm-ea73bd8a542f4a943a5a0d23c60777acf9471d87.tar.bz2
llvm-ea73bd8a542f4a943a5a0d23c60777acf9471d87.tar.xz
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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/R600/SIISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp
index 1a07affc19..6bd82a5d77 100644
--- a/lib/Target/R600/SIISelLowering.cpp
+++ b/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;