summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2019-10-29 17:11:21 +0000
committerJay Foad <jay.foad@amd.com>2019-10-30 11:16:42 +0000
commitb592253ec680e82d0d4a6c51429ca6166a3aaf99 (patch)
treecadd83ffd02a5c1e5164569443fd3b1c252f5832
parent9c273becce7d0b89bcb19593aae7ff914d6ffd66 (diff)
downloadbcm5719-llvm-b592253ec680e82d0d4a6c51429ca6166a3aaf99.tar.gz
bcm5719-llvm-b592253ec680e82d0d4a6c51429ca6166a3aaf99.zip
[AMDGPU] Consolidate one more getGeneration check
This one should have been done in r363902 when hasReadVCCZBug was introduced.
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index e84e948edb6..6a688b70554 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -1393,7 +1393,7 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
if (ScoreBrackets.getScoreLB(LGKM_CNT) <
ScoreBrackets.getScoreUB(LGKM_CNT) &&
ScoreBrackets.hasPendingEvent(SMEM_ACCESS)) {
- if (ST->getGeneration() <= AMDGPUSubtarget::SEA_ISLANDS)
+ if (ST->hasReadVCCZBug())
VCCZBugWorkAround = true;
}
}
OpenPOWER on IntegriCloud