summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_opt_dead_cf.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-09-09 13:24:35 -0700
committerJason Ekstrand <[email protected]>2015-09-11 09:21:20 -0700
commita4aa25be1e0a27b1a6a6b0bcf576beb9dfe1ea7a (patch)
tree30cefc1dcba792fba83755d8149fff8182a0c7a8 /src/glsl/nir/nir_opt_dead_cf.c
parent8c8fc5f8336c8c79e5890265ae6c03271aa94075 (diff)
nir: Remove the mem_ctx parameter from ssa_def_rewrite_uses
Reviewed-by: Thomas Helland <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_opt_dead_cf.c')
-rw-r--r--src/glsl/nir/nir_opt_dead_cf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_opt_dead_cf.c b/src/glsl/nir/nir_opt_dead_cf.c
index 5c5510484af..317bbc5ba63 100644
--- a/src/glsl/nir/nir_opt_dead_cf.c
+++ b/src/glsl/nir/nir_opt_dead_cf.c
@@ -83,8 +83,6 @@ remove_after_cf_node(nir_cf_node *node)
static void
opt_constant_if(nir_if *if_stmt, bool condition)
{
- void *mem_ctx = ralloc_parent(if_stmt);
-
/* First, we need to remove any phi nodes after the if by rewriting uses to
* point to the correct source.
*/
@@ -109,7 +107,7 @@ opt_constant_if(nir_if *if_stmt, bool condition)
assert(def);
assert(phi->dest.is_ssa);
- nir_ssa_def_rewrite_uses(&phi->dest.ssa, nir_src_for_ssa(def), mem_ctx);
+ nir_ssa_def_rewrite_uses(&phi->dest.ssa, nir_src_for_ssa(def));
nir_instr_remove(instr);
}