From 46c4b256239b12eb808a3c4df2ec625c3dd90e76 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 29 Jun 2020 13:22:19 +0100 Subject: [PATCH] aco: enable value numbering of s_buffer_load_* MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fossil-db (Navi): Totals from 33 (0.03% of 114665) affected shaders: SGPRs: 2176 -> 2152 (-1.10%) VGPRs: 1572 -> 1564 (-0.51%) CodeSize: 115988 -> 115472 (-0.44%) Instrs: 21459 -> 21385 (-0.34%) Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_opt_value_numbering.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/amd/compiler/aco_opt_value_numbering.cpp b/src/amd/compiler/aco_opt_value_numbering.cpp index de3d894bf54..ede60f4775e 100644 --- a/src/amd/compiler/aco_opt_value_numbering.cpp +++ b/src/amd/compiler/aco_opt_value_numbering.cpp @@ -224,8 +224,6 @@ struct InstrPred { return aK->imm == bK->imm; } case Format::SMEM: { - if (!a->operands.empty() && a->operands[0].bytes() == 16) - return false; SMEM_instruction* aS = static_cast(a); SMEM_instruction* bS = static_cast(b); /* isel shouldn't be creating situations where this assertion fails */ -- 2.30.2