From 4abe5b7927193678a86297a735338a46260011d7 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 3 May 2024 12:05:01 +0100 Subject: [PATCH] aco/gfx12: disable s_cmpk optimization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These opcodes were removed. Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Acked-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 0c928f14acf..bb02c8c83da 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -5382,7 +5382,7 @@ apply_literals(opt_ctx& ctx, aco_ptr& instr) } } - if (instr->isSOPC()) + if (instr->isSOPC() && ctx.program->gfx_level < GFX12) try_convert_sopc_to_sopk(instr); /* allow more s_addk_i32 optimizations if carry isn't used */