From f94d08ea771233e7b47cd5c2d85c12fdc24ccffa Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 26 Oct 2023 08:02:10 -0700 Subject: [PATCH] [AMDGPU] Correct assert that incorrectly chained multiple == operators. (#70291) Change-Id: I19593c4b93f4f3e1820e692a52d26e7e8866c5cf --- llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp b/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp index 01514c35d32296..927e56c0496ecb 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp @@ -1127,8 +1127,8 @@ void MFMASmallGemmSingleWaveOpt::applyIGLPStrategy( unsigned MFMACount = 0; unsigned DSRCount = 0; - assert((IsPostRA || - DSWCount == DSWWithPermCount == DSWWithSharedVMEMCount == 0) && + assert((IsPostRA || (DSWCount == 0 && DSWWithPermCount == 0 && + DSWWithSharedVMEMCount == 0)) && "DSWCounters should be zero in pre-RA scheduling!"); SmallVector DSWithPerms; for (auto &SU : DAG->SUnits) {