nir: add an optimization to turn global registers into local registers
authorConnor Abbott <connor.abbott@intel.com>
Wed, 30 Jul 2014 19:08:13 +0000 (12:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:18:58 +0000 (07:18 -0800)
commitcff1deff72294b810e4f03b72c7a871aacef8477
treeeeecd1cdc4771df63666bd33ac0fbce592202859
parent613bf6818aee4ac706d17d86e0bb421e81051fa3
nir: add an optimization to turn global registers into local registers

After linking and inlining, this allows us to convert these registers
into SSA values and optimise more code.
src/glsl/Makefile.sources
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_global_to_local.c [new file with mode: 0644]