nir/deref: remove casts of casts which are likely redundant (v3)
authorDave Airlie <airlied@redhat.com>
Tue, 5 Mar 2019 05:14:29 +0000 (15:14 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Mar 2019 00:58:06 +0000 (10:58 +1000)
commitb95b33a5c777e6c2cb378fb6d4e257b50c3a5a4d
tree3a635129ecc414b9f777647c5cad7111feaf7f67
parent3b3653c4cfbedf55a00cbddd0f341ebd1de81665
nir/deref: remove casts of casts which are likely redundant (v3)

Not sure how ptr_stride should be taken into account if at all here

v2: reorder check to avoid src walking (Jason)
v3: remove is_cast_cast checks, keep going afterwards (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_deref.c