summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_metadata.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-10-29 14:17:17 -0700
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commitf86902e75d989b781be36ced5dc98dfc0cd34b7b (patch)
treec6beb190e860bf39735f4e8c8612a424afcb3c45 /src/glsl/nir/nir_metadata.c
parentc9a21c725dab3613b0e81d9abe497a9f6018b391 (diff)
nir: Add an SSA-based liveness analysis pass.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_metadata.c')
-rw-r--r--src/glsl/nir/nir_metadata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_metadata.c b/src/glsl/nir/nir_metadata.c
index 070cb74d6d6..a4d618ccc05 100644
--- a/src/glsl/nir/nir_metadata.c
+++ b/src/glsl/nir/nir_metadata.c
@@ -39,6 +39,8 @@ nir_metadata_require(nir_function_impl *impl, nir_metadata required)
nir_index_blocks(impl);
if (NEEDS_UPDATE(nir_metadata_dominance))
nir_calc_dominance_impl(impl);
+ if (NEEDS_UPDATE(nir_metadata_live_variables))
+ nir_live_variables_impl(impl);
#undef NEEDS_UPDATE