nir: Add identities for the log function.
authorMatt Turner <mattst88@gmail.com>
Thu, 26 Mar 2015 17:07:58 +0000 (10:07 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 1 Apr 2015 20:43:57 +0000 (13:43 -0700)
commit099c729b4cb6863e8ddbdb9afe7fd7bd53c11ee1
treee359d3103011f36faa971f62890e2709542f3959
parent8a6ae384b2ae95f047e9d48a5a4c11002ffdd814
nir: Add identities for the log function.

The rcp(log(x)) pattern affects instruction counts.

instructions in affected programs:     144 -> 138 (-4.17%)
helped:                                6

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/nir_opt_algebraic.py