glsl: Optimize (v.x + v.y) + (v.z + v.w) into dot(v, 1.0).
authorMatt Turner <mattst88@gmail.com>
Sun, 2 Mar 2014 16:59:50 +0000 (08:59 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 19 Jun 2014 23:11:52 +0000 (16:11 -0700)
commite974781301601f411c376f9a7f5574adf9f0238a
tree7320f031bcf7739f72ecce894826137a82f83e5d
parentf043971097f2c707c3104845066ad2cc72f65708
glsl: Optimize (v.x + v.y) + (v.z + v.w) into dot(v, 1.0).

Cuts five instructions out of SynMark's Gl32VSInstancing benchmark.
src/glsl/opt_algebraic.cpp