diff options
author | Kenneth Graunke <[email protected]> | 2015-08-06 18:18:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-08-24 13:31:41 -0700 |
commit | 8e0d4ef3410ea07d9621df3e083bc3e7c1ad2ab0 (patch) | |
tree | 659c330da07e0be1c9efd58481484dc4c14cadf4 /src/glsl/nir/nir.c | |
parent | 9f00af672b59766008994a190730d48ae03773dd (diff) |
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 <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.c')
-rw-r--r-- | src/glsl/nir/nir.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c index 2f7cbae42be..60fdac5920d 100644 --- a/src/glsl/nir/nir.c +++ b/src/glsl/nir/nir.c @@ -262,7 +262,6 @@ nir_function_impl_create(nir_function_overload *overload) nir_block *end_block = nir_block_create(mem_ctx); start_block->cf_node.parent = &impl->cf_node; end_block->cf_node.parent = &impl->cf_node; - impl->start_block = start_block; impl->end_block = end_block; exec_list_push_tail(&impl->body, &start_block->cf_node.node); |