Re: [Mesa-dev] [PATCH] glsl: Optimize scalar all_equal/any_nequal into equal/nequal.

2014-12-04 Thread Eric Anholt
Matt Turner writes: > Cuts an instruction from two shaders in Tesseract, by allowing the > (x+y) cmp 0 -> x cmp -y optimization to take place. > > instructions in affected programs: 1198 -> 1194 (-0.33%) Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___

[Mesa-dev] [PATCH] glsl: Optimize scalar all_equal/any_nequal into equal/nequal.

2014-12-04 Thread Matt Turner
Cuts an instruction from two shaders in Tesseract, by allowing the (x+y) cmp 0 -> x cmp -y optimization to take place. instructions in affected programs: 1198 -> 1194 (-0.33%) --- src/glsl/opt_algebraic.cpp | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/glsl/opt_algebraic