From eaa0c7414285ff9d087a961e0d608538b5febba0 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 9 Jul 2014 16:57:03 -0700 Subject: glsl: Use ir_var_temporary for compiler generated temporaries These few places were using ir_var_auto for seemingly no reason. The names were not added to the symbol table. No change Valgrind massif results for a trimmed apitrace of dota2. Signed-off-by: Ian Romanick Reviewed-by: Matt Turner --- src/glsl/opt_cse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/opt_cse.cpp') diff --git a/src/glsl/opt_cse.cpp b/src/glsl/opt_cse.cpp index 0e720cc2686..9c96835ddd5 100644 --- a/src/glsl/opt_cse.cpp +++ b/src/glsl/opt_cse.cpp @@ -276,7 +276,7 @@ cse_visitor::try_cse(ir_rvalue *rvalue) ir_variable *var = new(rvalue) ir_variable(rvalue->type, "cse", - ir_var_auto); + ir_var_temporary); /* Write the previous expression result into a new variable. */ base_ir->insert_before(var); -- cgit v1.2.3