glsl: Remove bonus tree walking in opt_constant_folding().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Apr 2016 21:04:17 +0000 (14:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 May 2016 06:59:10 +0000 (23:59 -0700)
commit3bf27a9a002fd5c23937e4e34aff35c94824008f
tree1c16414d5b916228b6b496d0c0400b5c71f5df82
parent8e59670bcf925714896fb275a364e97a5137f0f7
glsl: Remove bonus tree walking in opt_constant_folding().

It looks like this was missed when converting opt_constant_folding()
from a hierarchical visitor to an rvalue visitor in 6606fde3.

ir_rvalue_visitor already processes values on the way back up the tree,
so we will have already visited every child node.  There's no point in
doing it again.

No change in shader-db.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/opt_constant_folding.cpp