nir/opt_load_store_vectorize: check for restrict at the variable
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 23 Oct 2020 14:31:28 +0000 (15:31 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 13:17:22 +0000 (13:17 +0000)
commit865ca3af2b6934163bd268091b9e1984746a064d
tree6b4b54f0c51b130f394c3da20144412c65ec1d02
parent2e7bceb2204fe66a3232f78ed4a43965eb50529a
nir/opt_load_store_vectorize: check for restrict at the variable

SPIR-V -> NIR doesn't set ACCESS_RESTRICT at the intrinsic.

fossil-db (GFX10.3):
Totals from 3 (0.00% of 139391) affected shaders:
CodeSize: 12364 -> 12356 (-0.06%)
Instrs: 2493 -> 2494 (+0.04%); split: -0.04%, +0.08%
Cycles: 15279372 -> 15295756 (+0.11%); split: -0.11%, +0.21%

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7295>
src/compiler/nir/nir_opt_load_store_vectorize.c