From 33641b2a26a4fa74d3e71f6a69d206955764a461 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 23 Jun 2022 16:30:17 +0100 Subject: [PATCH] aco: cleanup force-waitcnt output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don't reset ctx.vm_cnt/gpr_map/etc, this will spam a lot of s_waitcnt instructions. Signed-off-by: Rhys Perry Reviewed-by: Timur Kristóf Part-of: --- src/amd/compiler/aco_insert_waitcnt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index 197d9d2e021..ad41b5315d8 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -352,7 +352,7 @@ kill(wait_imm& imm, Instruction* instr, wait_ctx& ctx, memory_sync_info sync_inf /* Force emitting waitcnt states right after the instruction if there is * something to wait for. */ - return force_waitcnt(ctx, imm); + force_waitcnt(ctx, imm); } if (ctx.exp_cnt || ctx.vm_cnt || ctx.lgkm_cnt)