nir: Use nir_instr_rewrite_src in copy propagation
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 21 Apr 2015 19:12:26 +0000 (12:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 9 May 2015 00:16:13 +0000 (17:16 -0700)
commitecc2cfc8b60191c1df340467e086cd15b52b9fb7
tree5dd3543cce6c2928af1eacb5809427d39064aa9a
parentf72a8d1cf06da55c215a61c085e1f29a5102182b
nir: Use nir_instr_rewrite_src in copy propagation

We were rolling our own rewrite_src variant in copy-propagation.  Let's
stop doing that and use the ones in core NIR.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opt_copy_propagate.c