diff options
| author | Neil Henning <neil.henning@amd.com> | 2019-01-10 16:21:08 +0000 |
|---|---|---|
| committer | Neil Henning <neil.henning@amd.com> | 2019-01-10 16:21:08 +0000 |
| commit | e85d45a6994edd33177b17a9e62d631ec43c3637 (patch) | |
| tree | 13f2a1e1d80e7b71746a60f691c56b367d260d7f /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | |
| parent | 57f2c148607bba945fbb2089c09b96327cfe68f2 (diff) | |
| download | bcm5719-llvm-e85d45a6994edd33177b17a9e62d631ec43c3637.tar.gz bcm5719-llvm-e85d45a6994edd33177b17a9e62d631ec43c3637.zip | |
[AMDGPU] Fix dwordx3/southern-islands failures.
This commit fixes the dwordx3/southern-islands failures that were found
in bugzilla https://bugs.llvm.org/show_bug.cgi?id=40129, by not
generating the dwordx3 variants of load/store instructions that were
added to the ISA after southern islands.
Differential Revision: https://reviews.llvm.org/D56434
llvm-svn: 350838
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index 51be81a7a81..43c83efe47b 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -822,6 +822,11 @@ public: return getGeneration() != AMDGPUSubtarget::SOUTHERN_ISLANDS; } + // \returns true if the subtarget supports DWORDX3 load/store instructions. + bool hasDwordx3LoadStores() const { + return CIInsts; + } + bool hasSMovFedHazard() const { return getGeneration() >= AMDGPUSubtarget::GFX9; } |

