nir: Delete the nir_function_impl::start_block field.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Aug 2015 01:18:40 +0000 (18:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2015 20:31:41 +0000 (13:31 -0700)
commit8e0d4ef3410ea07d9621df3e083bc3e7c1ad2ab0
tree659c330da07e0be1c9efd58481484dc4c14cadf4
parent9f00af672b59766008994a190730d48ae03773dd
nir: Delete the nir_function_impl::start_block field.

It's simply the first nir_cf_node in the nir_function_impl::body list,
which is easy enough to access - we don't to store a pointer to it
explicitly.  Removing it means we don't need to maintain the pointer
when, say, splitting the start block when modifying control flow.

Thanks to Connor Abbott for suggesting this.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_dominance.c
src/glsl/nir/nir_lower_vars_to_ssa.c
src/glsl/nir/nir_opt_gcm.c
src/glsl/nir/nir_to_ssa.c