nir/vars_to_ssa: Delete dead output set code
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Nov 2015 05:52:37 +0000 (21:52 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Nov 2015 06:08:43 +0000 (22:08 -0800)
This was a remnant of an early attempt to handle output reads in
vars_to_ssa.  That attempt was abandon a long time ago but these few lines
were aparently left in the pass and managed to evade review.

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

index df24510b3a558bb1048294c6604dd145f6a9dd97..e670dbdc7e734227a664a99c1523b321afc39970 100644 (file)
@@ -879,10 +879,6 @@ nir_lower_vars_to_ssa_impl(nir_function_impl *impl)
    state.add_to_direct_deref_nodes = true;
    nir_foreach_block(impl, register_variable_uses_block, &state);
 
-   struct set *outputs = _mesa_set_create(state.dead_ctx,
-                                          _mesa_hash_pointer,
-                                          _mesa_key_pointer_equal);
-
    bool progress = false;
 
    nir_metadata_require(impl, nir_metadata_block_index);
@@ -916,9 +912,6 @@ nir_lower_vars_to_ssa_impl(nir_function_impl *impl)
          def_stack_push(node, &load->def, &state);
       }
 
-      if (deref->var->data.mode == nir_var_shader_out)
-         _mesa_set_add(outputs, node);
-
       foreach_deref_node_match(deref, lower_copies_to_load_store, &state);
    }