nir/opt_deref: Don't remove casts with alignment information
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 24 Aug 2020 16:26:18 +0000 (11:26 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit99bb2a4de66fa662fb4bcb29df8e2749972ee986
tree3259c62331c7c6eed92c3a4b0df7502e10607c36
parentbeefd37021edd707274625def137bed0df6fb65f
nir/opt_deref: Don't remove casts with alignment information

Generally, if a cast has alignment information, that information is
useful and we don't want to loose it.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/compiler/nir/nir_deref.c