diff options
| author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2019-03-01 07:59:17 +0000 |
|---|---|---|
| committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2019-03-01 07:59:17 +0000 |
| commit | bb98841399aab681fd28d67c1a253fe32eabc691 (patch) | |
| tree | 969e0891d44cde5e801be19e0c014c0e86b13626 /llvm/lib/Target | |
| parent | 9bf43b5c261b4df6c855231905d14608687c7633 (diff) | |
| download | bcm5719-llvm-bb98841399aab681fd28d67c1a253fe32eabc691.tar.gz bcm5719-llvm-bb98841399aab681fd28d67c1a253fe32eabc691.zip | |
[AMDGPU] Mark ds instructions as meybeAtomic
These were not recognized as potential atomics by memory legalizer.
The test was working not because legalizer did a right thing, but
because it has skipped all these instructions. When I have fixed
DS desciption test started to fail because region address has
changed from 4 to 2 a while ago.
Differential Revision: https://reviews.llvm.org/D58802
llvm-svn: 355179
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/DSInstructions.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td index c099a29d1c8..d255763d39a 100644 --- a/llvm/lib/Target/AMDGPU/DSInstructions.td +++ b/llvm/lib/Target/AMDGPU/DSInstructions.td @@ -18,6 +18,7 @@ class DS_Pseudo <string opName, dag outs, dag ins, string asmOps, list<dag> patt // Most instruction load and store data, so set this as the default. let mayLoad = 1; let mayStore = 1; + let maybeAtomic = 1; let hasSideEffects = 0; let SchedRW = [WriteLDS]; |

