nir: Move fsat outside of fmin/fmax if second arg is 0 to 1.
authorMatt Turner <mattst88@gmail.com>
Wed, 30 Nov 2016 01:33:30 +0000 (17:33 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 12 Dec 2016 20:39:27 +0000 (12:39 -0800)
commitac6646129f71b83e8e4d737db5ef82d9c9ea516b
treeb000acae1d125720bea1f5b24643bee57256f026
parent7bed52bb5fb4cfd5f91c902a654b3452f921da17
nir: Move fsat outside of fmin/fmax if second arg is 0 to 1.

instructions in affected programs: 550 -> 544 (-1.09%)
helped: 6

cycles in affected programs: 6952 -> 6850 (-1.47%)
helped: 6

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_algebraic.py
src/compiler/nir/nir_search_helpers.h