summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-02-09 14:41:10 -0800
committerJason Ekstrand <[email protected]>2015-02-19 17:06:17 -0800
commita52a4b5223ec007d74e8a0277181929d3ba89c06 (patch)
tree78d75559fdf79aa183c5f2a7b72192e082e5fcd0 /src/glsl/nir/nir.h
parent3d25afc51c1d56fe8c29147825e53ba272780360 (diff)
nir/instr: Change "live" to a more generic "pass_flags" field
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index b4cccb9bf8e..827c1966f3d 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -411,8 +411,10 @@ typedef struct {
nir_instr_type type;
struct nir_block *block;
- /* flag for dead code elimination (see nir_opt_dce.c) */
- bool live;
+ /* A temporary for optimization and analysis passes to use for storing
+ * flags. For instance, DCE uses this to store the "dead/live" info.
+ */
+ uint8_t pass_flags;
} nir_instr;
static inline nir_instr *