nir/algebraic: Generalize an optimization
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Oct 2018 17:43:43 +0000 (12:43 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 22 Oct 2018 21:00:18 +0000 (16:00 -0500)
commit6068be543b6ed67847a463b805b7ffeefcf549ee
treeed05d143efa56fe92e85d5683c6fa438b6fb42b0
parent69618a867858cceeaa59eca732eb76c7677e73a8
nir/algebraic: Generalize an optimization

There's nothing boolean about (a | ~a) ~> -1

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/nir/nir_opt_algebraic.py