glsl: Use ir_builder more in opt_algebraic.
authorEric Anholt <eric@anholt.net>
Thu, 24 Oct 2013 22:03:45 +0000 (15:03 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 28 Oct 2013 21:07:31 +0000 (14:07 -0700)
commit3a0fdf2ab6ab9c66c50645409d8f79bcd6f8ed1b
tree0688e4612f389d877956c4cee6804174718befb5
parent27bcb5063f5713c3e60bcff153cbc59fbe01a1f3
glsl: Use ir_builder more in opt_algebraic.

While ir_builder is slightly less efficient, we're only increasing the
work when there's actual optimization being done, and it's way more
readable code.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/opt_algebraic.cpp