From 08a4853ffdcecc3f7f883e4dc26fe9574b953cfe Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 17 Jul 2024 17:22:18 +0100 Subject: [PATCH] aco: add export instructions to should_form_clause MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fossil-db (gfx1150): Totals from 1 (0.00% of 79395) affected shaders: Instrs: 906 -> 901 (-0.55%) CodeSize: 4692 -> 4672 (-0.43%) Latency: 1582 -> 1561 (-1.33%) fossil-db (navi21): Totals from 9917 (12.49% of 79395) affected shaders: Instrs: 6120530 -> 6116252 (-0.07%) CodeSize: 31808916 -> 31791804 (-0.05%) Latency: 23854892 -> 23866438 (+0.05%); split: -0.01%, +0.06% InvThroughput: 4655278 -> 4655490 (+0.00%); split: -0.00%, +0.01% Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_ir.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index f6da93d25eb..42b334acbb9 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -1346,6 +1346,9 @@ should_form_clause(const Instruction* a, const Instruction* b) if (a->isVMEM() || a->isSMEM()) return a->operands[0].tempId() == b->operands[0].tempId(); + if (a->isEXP() && b->isEXP()) + return true; + return false; }