summaryrefslogtreecommitdiff
path: root/lib/Target/R600/SIInstrInfo.cpp
diff options
context:
space:
mode:
authorMichel Danzer <michel.daenzer@amd.com>2013-08-16 16:19:24 +0000
committerMichel Danzer <michel.daenzer@amd.com>2013-08-16 16:19:24 +0000
commitebd4eec5386e946dc80f4d80e803125af55c2a68 (patch)
treeaf3745f0c505b530c6926ad072ca3ca015f98fc8 /lib/Target/R600/SIInstrInfo.cpp
parentea549a847d87cb8ce46f6a45b24ae888db697a07 (diff)
downloadllvm-ebd4eec5386e946dc80f4d80e803125af55c2a68.tar.gz
llvm-ebd4eec5386e946dc80f4d80e803125af55c2a68.tar.bz2
llvm-ebd4eec5386e946dc80f4d80e803125af55c2a68.tar.xz
R600/SI: Fix broken encoding of DS_WRITE_B32
The logic in SIInsertWaits::getHwCounts() only really made sense for SMRD instructions, and trying to shoehorn it into handling DS_WRITE_B32 caused it to corrupt the encoding of that by clobbering the first operand with the second one. Undo that damage and only apply the SMRD logic to that. Fixes some derivates related piglit regressions with radeonsi. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SIInstrInfo.cpp')
-rw-r--r--lib/Target/R600/SIInstrInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp
index 9bb4ad9abc..2719ea2490 100644
--- a/lib/Target/R600/SIInstrInfo.cpp
+++ b/lib/Target/R600/SIInstrInfo.cpp
@@ -229,6 +229,10 @@ int SIInstrInfo::isMIMG(uint16_t Opcode) const {
return get(Opcode).TSFlags & SIInstrFlags::MIMG;
}
+int SIInstrInfo::isSMRD(uint16_t Opcode) const {
+ return get(Opcode).TSFlags & SIInstrFlags::SMRD;
+}
+
//===----------------------------------------------------------------------===//
// Indirect addressing callbacks
//===----------------------------------------------------------------------===//