nir/vars_to_ssa: Rework register_variable_uses()
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 11 Apr 2018 06:13:38 +0000 (23:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Apr 2018 18:05:05 +0000 (11:05 -0700)
commit1c9bccdeb8acf1a531b49bbb6c69ea96879e79de
treeea2f5961ed5ea74843872be7b788fa0d4c4f934f
parentbc2b170d6849d31fc88df4ece635ff789e4ad0c2
nir/vars_to_ssa: Rework register_variable_uses()

The return value was needed to make use of the old nir_foreach_block
helper, but not needed anymore with the macro version. Then go one
step further and move the foreach directly into the register variable
uses function.

v2: Move foreach to register_variable_uses(). (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_vars_to_ssa.c