nir/load_libclc: run some opt passes for everybody
authorKarol Herbst <kherbst@redhat.com>
Sat, 16 Apr 2022 22:06:54 +0000 (00:06 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 22 Jun 2023 21:02:57 +0000 (21:02 +0000)
commit570c263ea3a2032ed4cb263bb092f55d3ab07be7
treef5f04b322db22b2fcb4be12513b4da0ffedc5738
parent3a981acf55570a9b1e023d2c7ef75d499c2c8fbc
nir/load_libclc: run some opt passes for everybody

Cuts down serialized size from 2850288 to 1377780 bytes.

Reduces clinfo with Rusticl time by 40% for debug builds.

(Old data, but the point stands)

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15996>
src/compiler/clc/clc.c
src/compiler/clc/nir_clc_helpers.h
src/compiler/clc/nir_load_libclc.c
src/gallium/frontends/clover/nir/invocation.cpp
src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs
src/intel/compiler/brw_kernel.c