From fa66b670d49bd93de36eede6fee0c8197a838dc6 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Tue, 11 Nov 2025 18:13:05 +0100 Subject: [PATCH] aco/optimizer: reduce max alu_opt_info stack operands to 4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ALU instructions typically have a maximum of 3 operands, and even when combining instructions, the peak count will not go above 4. Reviewed-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 9b07b1bdaff..c2d914111ac 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -417,7 +417,7 @@ struct alu_opt_op { struct alu_opt_info { aco::small_vec defs; - aco::small_vec operands; + aco::small_vec operands; aco_opcode opcode; Format format; uint32_t imm;