diff options
author | Jason Ekstrand <[email protected]> | 2014-12-17 15:34:47 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:23 -0800 |
commit | 1b720c6ed868b3f231f63568fc360fe7c4024c02 (patch) | |
tree | cf1ebcac20b2dd139feed7fc037bf38af4fba9df /src/glsl/nir/nir.h | |
parent | de73d1e17318b9e7ed9d1f84bef56f6cc09bdf82 (diff) |
nir/from_ssa: Clean up parallel copy handling and document it better
Previously, we were doing a lazy creation of the parallel copy
instructions. This is confusing, hard to get right, and involves some
extra state tracking of the copies. This commit adds an extra walk over
the basic blocks to add the block-end parallel copies up front. This
should be much less confusing and, consequently, easier to get right. This
commit also adds more comments about parallel copies to help explain what
all is going on.
As a consequence of these changes, we can now remove the at_end parameter
from nir_parallel_copy_instr.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 5ae572335f6..7e74128462a 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -966,13 +966,6 @@ typedef struct { typedef struct { nir_instr instr; - - /* Indicates that this is the parallel copy at the end of the block. - * When isolating phi nodes, we create 2 parallel copies in most blocks; - * this flag helps tell them apart. - */ - bool at_end; - struct exec_list copies; } nir_parallel_copy_instr; |