summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
diff options
context:
space:
mode:
authorRyan Taylor <rtayl@amd.com>2019-06-26 17:34:57 +0000
committerRyan Taylor <rtayl@amd.com>2019-06-26 17:34:57 +0000
commit9ab812d4752b2a1442426db2ccc17dc95d12eb04 (patch)
tree1b9439a3630c4fcf053184b1e3d54c61bf7acd66 /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
parent4c86dd903265be9fd72a5ebf7c568a15f3cad0a6 (diff)
downloadbcm5719-llvm-9ab812d4752b2a1442426db2ccc17dc95d12eb04.tar.gz
bcm5719-llvm-9ab812d4752b2a1442426db2ccc17dc95d12eb04.zip
[AMDGPU] Fix for branch offset hardware workaround
Summary: This fixes a hardware bug that makes a branch offset of 0x3f unsafe. This replaces the 32 bit branch with offset 0x3f to a 64 bit instruction that includes the same 32 bit branch and the encoding for a s_nop 0 to follow. The relaxer than modifies the offsets accordingly. Change-Id: I10b7aed99d651f8159401b01bb421f105fa6288e Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63494 llvm-svn: 364451
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
index 17222a77a0b..ea641017c80 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
@@ -261,6 +261,7 @@ GCNSubtarget::GCNSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
HasVcmpxExecWARHazard(false),
HasLdsBranchVmemWARHazard(false),
HasNSAtoVMEMBug(false),
+ HasOffset3fBug(false),
HasFlatSegmentOffsetBug(false),
FeatureDisable(false),
OpenPOWER on IntegriCloud