nir/spirv: Hanle continues that use SSA values from the loop body
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 18 Jan 2016 17:33:56 +0000 (09:33 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 18 Jan 2016 17:43:12 +0000 (09:43 -0800)
commit14ebd0fdd799d4b721633d25a08d966ee8069243
tree83d4ff91a330515381b4df7486c3d5a7511ac0d3
parent61ba97522ea8551714c5b8b2a90983594c208165
nir/spirv: Hanle continues that use SSA values from the loop body

Instead of emitting the continue before the loop body we emit it
afterwards.  Then, once we've finished with the entire function, we run
nir_repair_ssa to add whatever phi nodes are needed.
src/glsl/nir/spirv/vtn_cfg.c
src/glsl/nir/spirv/vtn_private.h