nir/vars_to_ssa: Refactor get_deref_node
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Jan 2015 22:00:12 +0000 (14:00 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:24 +0000 (07:20 -0800)
commit700ba5daaf9ec340dc967bbf1ba355470a573b37
tree8f5d3999dafeae9233fa7cd8ec57565528572946
parent55b5058e69859ba28c2f32de6edf5f0df3c6c28c
nir/vars_to_ssa: Refactor get_deref_node

This refactor allows you to more easily get the deref node associated with
a given variable.  We then use that new functionality in the
deref_may_be_aliased function instead of creating a 1-element deref chain.

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