summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVincent Lejeune <vljn@ovi.com>2013-07-31 19:31:41 +0000
committerVincent Lejeune <vljn@ovi.com>2013-07-31 19:31:41 +0000
commita92f8ee2f3ee12d26f6ed0720c763021cfa22ca8 (patch)
tree803e79c1f31e99bab728863734e779e28b6f7d72 /lib
parent3f1de26cb5cc0543a6a1d71259a7a39d97139051 (diff)
downloadllvm-a92f8ee2f3ee12d26f6ed0720c763021cfa22ca8.tar.gz
llvm-a92f8ee2f3ee12d26f6ed0720c763021cfa22ca8.tar.bz2
llvm-a92f8ee2f3ee12d26f6ed0720c763021cfa22ca8.tar.xz
R600: Don't mix LDS and non-LDS instructions in the same group
There are a lot of restrictions on instruction groups that contain LDS instructions, so for now we will be conservative and not packetize anything else with them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/R600Packetizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/R600/R600Packetizer.cpp b/lib/Target/R600/R600Packetizer.cpp
index f4219bd476..5cf1fd3b66 100644
--- a/lib/Target/R600/R600Packetizer.cpp
+++ b/lib/Target/R600/R600Packetizer.cpp
@@ -161,6 +161,10 @@ public:
return true;
if (MI->getOpcode() == AMDGPU::GROUP_BARRIER)
return true;
+ // XXX: This can be removed once the packetizer properly handles all the
+ // LDS instruction group restrictions.
+ if (TII->isLDSInstr(MI->getOpcode()))
+ return true;
return false;
}