nir/spirv: Simplify phi node handling
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 22:59:40 +0000 (14:59 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 22:59:40 +0000 (14:59 -0800)
commit71a25a0b074ecaf4d287d1338746075170a17d4f
treeac0e11780e2e905407144d8d238808a6f96181ae
parentec899f6b4220509626c14b32a2b048dc3df49cce
nir/spirv: Simplify phi node handling

Instead of trying to crawl through predecessor chains and build phi nodes,
we just do a poor-man's out-of-ssa on the spot.  The into-SSA pass will
deal with putting the actual phi nodes in for us.
src/glsl/nir/spirv/spirv_to_nir.c
src/glsl/nir/spirv/vtn_cfg.c
src/glsl/nir/spirv/vtn_private.h