nir: Add a pass to lower local variable accesses to SSA values
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Nov 2014 01:16:31 +0000 (17:16 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:02 +0000 (07:19 -0800)
commitd477beab077106d8e76a80298a685f16f4c4e85e
tree76f37d28a1b3e9a8a19aa201df8aa4393d96ed66
parent615ba5ad043d93ea08a7a219046ef8eb523dba04
nir: Add a pass to lower local variable accesses to SSA values

This pass analizes all of the load/store operations and, when a variable is
never aliased (potentially used by an indirect operation), it is lowered
directly to an SSA value.  This pass translates to SSA directly and does
not require any fixup by the original to-SSA pass.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/Makefile.sources
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_variables.c [new file with mode: 0644]