summaryrefslogtreecommitdiffstats
path: root/src/glsl/opt_cse.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2014-07-09 16:57:03 -0700
committerIan Romanick <ian.d.romanick@intel.com>2014-09-30 13:34:43 -0700
commiteaa0c7414285ff9d087a961e0d608538b5febba0 (patch)
tree6ca8e741dbc0a03e283e0720b8998adc582a1b63 /src/glsl/opt_cse.cpp
parent04e1357d97ae2d99dfbf0b6e91feee54eecd6eb5 (diff)
downloadexternal_mesa3d-eaa0c7414285ff9d087a961e0d608538b5febba0.zip
external_mesa3d-eaa0c7414285ff9d087a961e0d608538b5febba0.tar.gz
external_mesa3d-eaa0c7414285ff9d087a961e0d608538b5febba0.tar.bz2
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 <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/opt_cse.cpp')
-rw-r--r--src/glsl/opt_cse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/opt_cse.cpp b/src/glsl/opt_cse.cpp
index 0e720cc..9c96835 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);