nir: Add a couple trivial abs optimizations
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Jul 2018 06:57:07 +0000 (23:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Jul 2018 17:48:21 +0000 (10:48 -0700)
commite4d346c86db0ae332fcdf55eac0e075cfb99a7eb
treedaef2e18eb215e48c6398ad6b2176da62d07d2c4
parent52d831ff83036773978aabf52dde3bb73bb211c7
nir: Add a couple trivial abs optimizations

Spotted in a shader in Batman: Arkham City.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_opt_algebraic.py