nir: rename variables in nir_lower_io_to_temporaries for clarity
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 4 Apr 2018 23:16:39 +0000 (16:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 6 Apr 2018 18:08:08 +0000 (11:08 -0700)
commit67c728f7a9450b04d4de1a29f1dcfb9265a7ebfd
tree58cb405b4445f89683ac8466077bfe882831f285
parent8f9f62c2db85a7fe394265154bce4c189eb295b1
nir: rename variables in nir_lower_io_to_temporaries for clarity

In the emit_copies() function, the use of "newv" and "temp" names made
sense when only copies from temporaries to the new variables were
being done. But now there are other calls to copy with other pairings,
and "temp" doesn't always refer to a temporary created in this
pass. Use the names "dest" and "src" instead.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_io_to_temporaries.c