nir/serialize: don't store deref types if not needed
authorMarek Olšák <marek.olsak@amd.com>
Tue, 5 Nov 2019 01:11:11 +0000 (20:11 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2019 05:02:10 +0000 (00:02 -0500)
commit2286340fde63d7dfbb4f70a6ffa254989c1477b1
treeb88cf7d0dc684be619c7b4c2314c1c5877c363d5
parent70a7f85149db1578430fb934c8b4e84065a9f74b
nir/serialize: don't store deref types if not needed

- type_cast: deduplicate types if the last one is the same
- derive the type from the parent for other derefs

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_serialize.c