diff options
author | Kenneth Graunke <[email protected]> | 2016-08-24 21:33:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-25 19:18:24 -0700 |
commit | c2fd6b0f5d1c964fa63e72d6938721cba9597629 (patch) | |
tree | de8d2a1354cac6400bc4a6051b6a15959cf01ddc /src/util/u_atomic_test.c | |
parent | 3203fe3d509b6a0e44c82384fba1dcc4c8c43dc6 (diff) |
i965: Safely iterate the predecessors of the end block.
We want to insert code in each of the predecessors of the end block.
This code includes a nir_if, which would split the block, altering
the set. To avoid that, I emitted a dead constant at the end of each
block before splitting it, so that the set of predecessors remained
unchanged. This was admittedly ugly.
Connor suggested instead saving a copy of the set, so we can iterate
it safely. This is also a little ugly, but a much better plan.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/util/u_atomic_test.c')
0 files changed, 0 insertions, 0 deletions