nir/serialize: don't serialize mode for deref non-cast instructions
authorMarek Olšák <marek.olsak@amd.com>
Tue, 5 Nov 2019 22:39:38 +0000 (17:39 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 Nov 2019 05:02:10 +0000 (00:02 -0500)
commitca201bfe7060638cfd39a8d263df93cb0c39c75b
tree67135d911034661a80ed66e58bb500894fccb819
parent2286340fde63d7dfbb4f70a6ffa254989c1477b1
nir/serialize: don't serialize mode for deref non-cast instructions

It can be derived from src and var. This frees 10 bits in the header
that will be used later.

"mode" is moved in the structure, because those bits will be used for
something else later.

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