diff options
author | Jason Ekstrand <[email protected]> | 2015-01-20 16:30:14 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-20 16:53:29 -0800 |
commit | 194f6235b32cd0c54547a3913e463cf691d011d6 (patch) | |
tree | d93c654666139b58961430e80433b8342b88a86d /src/glsl/nir/nir_from_ssa.c | |
parent | 169d7e5cb1cce73d39e40717d5f49ac30b626d1b (diff) |
nir: Add a nir_foreach_phi_src helper macro
Reviewed-by: Connor Abbott <cwabbott02gmail.com>
Diffstat (limited to 'src/glsl/nir/nir_from_ssa.c')
-rw-r--r-- | src/glsl/nir/nir_from_ssa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c index 025869921f7..9728b9980cc 100644 --- a/src/glsl/nir/nir_from_ssa.c +++ b/src/glsl/nir/nir_from_ssa.c @@ -343,7 +343,7 @@ isolate_phi_nodes_block(nir_block *block, void *void_state) nir_phi_instr *phi = nir_instr_as_phi(instr); assert(phi->dest.is_ssa); - foreach_list_typed(nir_phi_src, src, node, &phi->srcs) { + nir_foreach_phi_src(phi, src) { nir_parallel_copy_instr *pcopy = get_parallel_copy_at_end_of_block(src->pred); assert(pcopy); @@ -412,7 +412,7 @@ coalesce_phi_nodes_block(nir_block *block, void *void_state) assert(phi->dest.is_ssa); merge_node *dest_node = get_merge_node(&phi->dest.ssa, state); - foreach_list_typed(nir_phi_src, src, node, &phi->srcs) { + nir_foreach_phi_src(phi, src) { assert(src->src.is_ssa); merge_node *src_node = get_merge_node(src->src.ssa, state); if (src_node->set != dest_node->set) |