[llvm] b592253 - [AMDGPU] Consolidate one more getGeneration check

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 04:19:15 PDT 2019


Author: Jay Foad
Date: 2019-10-30T11:16:42Z
New Revision: b592253ec680e82d0d4a6c51429ca6166a3aaf99

URL: https://github.com/llvm/llvm-project/commit/b592253ec680e82d0d4a6c51429ca6166a3aaf99
DIFF: https://github.com/llvm/llvm-project/commit/b592253ec680e82d0d4a6c51429ca6166a3aaf99.diff

LOG: [AMDGPU] Consolidate one more getGeneration check

This one should have been done in r363902 when hasReadVCCZBug was
introduced.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index e84e948edb63..6a688b70554d 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;
       }
     }


        


More information about the llvm-commits mailing list