nir: optimise min/max fadd combos
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 12 Jan 2017 10:51:56 +0000 (21:51 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 14 Jan 2017 12:26:22 +0000 (23:26 +1100)
commit772cd3104852302aedf87895cef7828ccacedee2
tree91e4f5998d6d78e80dd86e908a6ab851e33bc5b3
parent0d5071db5e50629a63490639a3c86dfc65bf27ab
nir: optimise min/max fadd combos

shader-db results BDW:

total instructions in shared programs: 13060410 -> 13060313 (-0.00%)
instructions in affected programs: 24533 -> 24436 (-0.40%)
helped: 88
HURT: 0

total cycles in shared programs: 256585692 -> 256586698 (0.00%)
cycles in affected programs: 647290 -> 648296 (0.16%)
helped: 35
HURT: 30

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_opt_algebraic.py
src/compiler/nir/nir_search_helpers.h