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_opt_cse.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_opt_cse.c')
-rw-r--r-- | src/glsl/nir/nir_opt_cse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_opt_cse.c b/src/glsl/nir/nir_opt_cse.c index e7dba1d4581..89d78c8d34e 100644 --- a/src/glsl/nir/nir_opt_cse.c +++ b/src/glsl/nir/nir_opt_cse.c @@ -99,8 +99,8 @@ nir_instrs_equal(nir_instr *instr1, nir_instr *instr2) if (phi1->instr.block != phi2->instr.block) return false; - foreach_list_typed(nir_phi_src, src1, node, &phi1->srcs) { - foreach_list_typed(nir_phi_src, src2, node, &phi2->srcs) { + nir_foreach_phi_src(phi1, src1) { + nir_foreach_phi_src(phi2, src2) { if (src1->pred == src2->pred) { if (!nir_srcs_equal(src1->src, src2->src)) return false; |