glsl: Optimize lrp(x, x, coefficient) --> x.
authorEric Anholt <eric@anholt.net>
Sat, 18 Jan 2014 19:00:51 +0000 (11:00 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 7 Feb 2014 20:46:48 +0000 (12:46 -0800)
commit44577c48573acdbc8a708e6613f367507e9eafc5
tree4dabf111ad4bcba72ad08b6e0c1da0b2ebbf994b
parentd72956790fed5f62b8eea5938ed432544530f7bd
glsl: Optimize lrp(x, x, coefficient) --> x.

total instructions in shared programs: 1627754 -> 1624534 (-0.20%)
instructions in affected programs:     45748 -> 42528 (-7.04%)
GAINED:                                3
LOST:                                  0

(serious sam, humus domino demo)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/opt_algebraic.cpp