i965/fs: use SSA values directly
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 24 Jun 2015 19:28:47 +0000 (12:28 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jun 2015 18:18:27 +0000 (11:18 -0700)
commit864907e2f14523c130e6ff24c081789bb079bae1
tree3cbda9a797b787a3ba37c1f62904011a65a108be
parent2b1a1d8b1294f91b7ac563da1f395deba4384765
i965/fs: use SSA values directly

Before, we would use registers, but set a magical "parent_instr" field
to indicate that it was actually purely an SSA value (i.e., it wasn't
involved in any phi nodes). Instead, just use SSA values directly, which
lets us get rid of the hack and reduces memory usage since we're not
allocating a nir_register for every value. It also makes our handling of
load_const more consistent compared to the other instructions.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_nir_analyze_boolean_resolves.c