summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:49 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-26 15:05:49 +0000
commitf3d166aa1eefc95ec3721cf47583351a6d6a8e17 (patch)
treeaa0fb7cba836c8d95a99103d4762ea9e54392741 /llvm/lib/Target/R600/AMDGPUISelLowering.cpp
parent2ffc33067366d7e58af7ece310893f357cc7678e (diff)
downloadbcm5719-llvm-f3d166aa1eefc95ec3721cf47583351a6d6a8e17.tar.gz
bcm5719-llvm-f3d166aa1eefc95ec3721cf47583351a6d6a8e17.zip
R600: Add support for i8 and i16 local memory stores
llvm-svn: 189223
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
index 9df835fc874..88867b6e9da 100644
--- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -495,9 +495,9 @@ SDValue AMDGPUTargetLowering::SplitVectorStore(SDValue Op,
Store->getBasePtr(),
DAG.getConstant(i * (MemEltVT.getSizeInBits() / 8),
PtrVT));
- Chains.push_back(DAG.getStore(Store->getChain(), SL, Val, Ptr,
+ Chains.push_back(DAG.getTruncStore(Store->getChain(), SL, Val, Ptr,
MachinePointerInfo(Store->getMemOperand()->getValue()),
- Store->isVolatile(), Store->isNonTemporal(),
+ MemEltVT, Store->isVolatile(), Store->isNonTemporal(),
Store->getAlignment()));
}
return DAG.getNode(ISD::TokenFactor, SL, MVT::Other, &Chains[0], NumElts);
OpenPOWER on IntegriCloud