summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 13:39:43 +0000
committertstellar <tstellar@91177308-0d34-0410-b5e6-96231b3b80d8>2012-10-03 13:39:43 +0000
commitdfd3efcf997492b908ccbf5a5b203447dc2abfe7 (patch)
tree6d1e4236f46aba43cb11d65a34630c83da7bdad7
parent920bc39b66ab244a6fe6053e5384d30d65783b5c (diff)
SI: S_WAITCNT has side effects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/R600/@165114 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/AMDGPU/SIInstructions.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/SIInstructions.td b/lib/Target/AMDGPU/SIInstructions.td
index dafd6ad349c..c154a55eab0 100644
--- a/lib/Target/AMDGPU/SIInstructions.td
+++ b/lib/Target/AMDGPU/SIInstructions.td
@@ -672,9 +672,11 @@ def S_CBRANCH_EXECNZ : SOPP <
} // End isTerminator = 1
//def S_BARRIER : SOPP_ <0x0000000a, "S_BARRIER", []>;
+let hasSideEffects = 1 in {
def S_WAITCNT : SOPP <0x0000000c, (ins i32imm:$simm16), "S_WAITCNT $simm16",
[]
>;
+} // End hasSideEffects
//def S_SETHALT : SOPP_ <0x0000000d, "S_SETHALT", []>;
//def S_SLEEP : SOPP_ <0x0000000e, "S_SLEEP", []>;
//def S_SETPRIO : SOPP_ <0x0000000f, "S_SETPRIO", []>;