From c59a85d406567114a96dd95c57595d12cc7eb52e Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 23 Jul 2025 11:19:57 +0100 Subject: [PATCH] nir/load_store_vectorize: remove offset check in try_vectorize_shared2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This doesn't seem useful anymore. fossil-db (gfx1201): Totals from 111 (0.14% of 79839) affected shaders: Instrs: 152356 -> 151883 (-0.31%); split: -0.35%, +0.04% CodeSize: 808484 -> 805584 (-0.36%); split: -0.39%, +0.04% VGPRs: 7880 -> 7844 (-0.46%); split: -0.91%, +0.46% Latency: 4121366 -> 4120648 (-0.02%); split: -0.04%, +0.02% InvThroughput: 814622 -> 815362 (+0.09%); split: -0.02%, +0.11% VClause: 3066 -> 3065 (-0.03%); split: -0.10%, +0.07% SClause: 2594 -> 2593 (-0.04%) Copies: 9412 -> 9447 (+0.37%); split: -0.47%, +0.84% PreSGPRs: 4012 -> 4026 (+0.35%) PreVGPRs: 4025 -> 4070 (+1.12%); split: -0.22%, +1.34% VALU: 80457 -> 81039 (+0.72%); split: -0.08%, +0.80% SALU: 16542 -> 16528 (-0.08%); split: -0.10%, +0.02% VOPD: 39 -> 44 (+12.82%) Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/compiler/nir/nir_opt_load_store_vectorize.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compiler/nir/nir_opt_load_store_vectorize.c b/src/compiler/nir/nir_opt_load_store_vectorize.c index fd402b776d0..e92cafb1108 100644 --- a/src/compiler/nir/nir_opt_load_store_vectorize.c +++ b/src/compiler/nir/nir_opt_load_store_vectorize.c @@ -1521,10 +1521,6 @@ try_vectorize_shared2(struct vectorize_ctx *ctx, if (diff % stride || diff > 255 * stride) return false; - /* try to avoid creating accesses we can't combine additions/offsets into */ - if (high->offset > 255 * stride || (st64 && high->offset % stride)) - return false; - if (first->is_store) { if (get_write_mask(low->intrin) != BITFIELD_MASK(low->num_components)) return false;