nir: Allocate nir_ssa_def::uses/if_uses out of the instruction.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 17:02:17 +0000 (10:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 Apr 2015 21:34:13 +0000 (14:34 -0700)
commit4f4b04b7c7ee1ce27da990190a740473db0f2ecb
tree16f5cc9c92f06cb6a5db5124716c259b8f8ea986
parent900498bd111091dfda79d5ca6d84fffd427a866d
nir: Allocate nir_ssa_def::uses/if_uses out of the instruction.

We can't allocate them out of the nir_ssa_def itself, because it may not
be ralloc'd (for example, nir_dest embeds a nir_ssa_def).

However, allocating them out of the instruction should work.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.c