nir/deref: Drop zero ptr_as_array derefs
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 3 Feb 2019 15:32:32 +0000 (09:32 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Feb 2019 21:17:19 +0000 (15:17 -0600)
commit36734987a59f087ae499c5d0736995007f4af780
treefb97f50bc060cbd4b3c0c896ab6e3541d4b03cb4
parentaaef12702f3b3a9e0464468948b1cbfaf4a66cd2
nir/deref: Drop zero ptr_as_array derefs

They are effectively (&x)[0] or *&x which does nothing.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/nir/nir_deref.c