From 30c4ba444a8069111e67bf380d3c0ac7c764ede7 Mon Sep 17 00:00:00 2001 From: "Jakacki, Jakub" Date: Mon, 16 Dec 2024 23:52:32 +0000 Subject: [PATCH] Fix an incorrect assert in AccSubstition Fix an incorrect assert in AccSubstition --- visa/Passes/AccSubstitution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visa/Passes/AccSubstitution.cpp b/visa/Passes/AccSubstitution.cpp index 1a3f106523b3..9e37d39dd3b5 100644 --- a/visa/Passes/AccSubstitution.cpp +++ b/visa/Passes/AccSubstitution.cpp @@ -1386,7 +1386,7 @@ void AccSubPass::multiAccSub(G4_BB *bb) { // Skip as src1 could use acc. if (U.second == Opnd_src1) continue; - vISA_ASSERT(U.second = Opnd_src2, "Only src1 or src2 is expected."); + vISA_ASSERT(U.second == Opnd_src2, "Only src1 or src2 is expected."); U.first->swapSrc(1, 2); U.first->swapDefUse(Opnd_src1, Opnd_src2); if (builder.getPlatform() == GENX_TGLLP) {