nir/inline_functions: Don't shadown variables when it isn't needed
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 01:41:36 +0000 (17:41 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Feb 2016 18:29:05 +0000 (10:29 -0800)
commitde6c9c5f2e1e975d06e4d27cefc6af9ae53d75a7
treebd334c4da9e543a0f3e406c6cb5c270a75cf8de6
parentb6c00bfb03b79ea01e6eaff916e21ed97200e330
nir/inline_functions: Don't shadown variables when it isn't needed

Previously, in order to get things working, we just always shadowed
variables.  Now, we rewrite derefs whenever it's safe to do so and only
shadow if we have an in or out variable that we write or read to
respectively.
src/compiler/nir/nir_inline_functions.c