From 5db64fcc8ca28e9893899327c3817e592267801d Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 18 Apr 2023 14:58:57 +0100 Subject: [PATCH] aco: use apply_nuw_to_ssa() with load_smem_amd MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fossil-db (navi21): Totals from 107 (0.08% of 135636) affected shaders: Instrs: 389667 -> 389425 (-0.06%); split: -0.06%, +0.00% CodeSize: 2050380 -> 2049440 (-0.05%); split: -0.05%, +0.00% Latency: 3738053 -> 3737313 (-0.02%); split: -0.02%, +0.00% InvThroughput: 599889 -> 599790 (-0.02%); split: -0.02%, +0.00% SClause: 16120 -> 15920 (-1.24%) Copies: 29823 -> 29809 (-0.05%); split: -0.07%, +0.02% PreSGPRs: 6856 -> 6849 (-0.10%) Signed-off-by: Rhys Perry Reviewed-by: Qiang Yu Reviewed-by: Timur Kristóf Part-of: --- src/amd/compiler/aco_instruction_selection_setup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index a4bcca7..d77266f 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -232,7 +232,8 @@ apply_nuw_to_offsets(isel_context* ctx, nir_function_impl* impl) apply_nuw_to_ssa(ctx, intrin->src[2].ssa); break; case nir_intrinsic_load_scratch: apply_nuw_to_ssa(ctx, intrin->src[0].ssa); break; - case nir_intrinsic_store_scratch: apply_nuw_to_ssa(ctx, intrin->src[1].ssa); break; + case nir_intrinsic_store_scratch: + case nir_intrinsic_load_smem_amd: apply_nuw_to_ssa(ctx, intrin->src[1].ssa); break; default: break; } } -- 2.7.4