glsl: Do not call lhs->variable_referenced() multiple times
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 9 May 2014 06:50:03 +0000 (08:50 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 May 2014 08:01:02 +0000 (10:01 +0200)
commita143fbb3220e4c40cd2c75eca6f3e94fba0fe324
tree342bc09104d91a18af3c545971b2017ea73dac27
parent2a549c43a8c585b312fda920fcd7048e52fdcb05
glsl: Do not call lhs->variable_referenced() multiple times

Instead take the result from the first call and use it where needed.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp