From 15cd53d7419a0cc1e5ca4a72ff31d74fd662d9c2 Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Thu, 29 Jun 2017 19:08:16 +0300 Subject: [PATCH] [AMDGPU] fix condition for the VVCZ bug workaround --- lib/Target/AMDGPU/SIInsertWaitcnts.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp index 0f009a48754..447cb9b5915 100644 --- a/lib/Target/AMDGPU/SIInsertWaitcnts.cpp +++ b/lib/Target/AMDGPU/SIInsertWaitcnts.cpp @@ -1525,12 +1525,8 @@ void SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF, bool VCCZBugWorkAround = false; if (readsVCCZ(Inst) && (VCCZBugHandledSet.find(&Inst) == VCCZBugHandledSet.end())) { - if (ScoreBrackets->getScoreLB(LGKM_CNT) < - ScoreBrackets->getScoreUB(LGKM_CNT) && - ScoreBrackets->hasPendingSMEM()) { - if (ST->getGeneration() <= SISubtarget::SEA_ISLANDS) - VCCZBugWorkAround = true; - } + if (ST->getGeneration() <= SISubtarget::SEA_ISLANDS) + VCCZBugWorkAround = true; } // Generate an s_waitcnt instruction to be placed before -- 2.13.0