nir/vars_to_ssa: Simplify node matching code
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 11 Apr 2018 06:13:40 +0000 (23:13 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Apr 2018 18:05:05 +0000 (11:05 -0700)
commit89542c9ce6842a162bf75b945f11e2f56b02ddba
tree71bc7352f55889fe077633a93a17a1286b91490a
parentfac9dd1b93829a84f634525ce41f18953fe92433
nir/vars_to_ssa: Simplify node matching code

The matching code doesn't make real use of the return value. The main
function return value is ignored, and while the worker function
propagate its return value, the actual callback never returns false.

v2: Style fixes. (Jason)

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