glsl: Optimize abs(-expr) and abs(abs(expr)) into abs(expr).
authorMatt Turner <mattst88@gmail.com>
Wed, 16 Oct 2013 23:56:44 +0000 (16:56 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 22 Oct 2013 05:53:36 +0000 (22:53 -0700)
commit963df4d37da7a7a1ee02cf26e142386a62a611f8
treeb43242309a457cc8294579521741cc191e5a784b
parent5b3aec412e1bcbc19b492a2ddd0ce0322acea5f6
glsl: Optimize abs(-expr) and abs(abs(expr)) into abs(expr).

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/opt_algebraic.cpp