nir: add imprecise flrp optimisation
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 3 Jan 2017 10:10:33 +0000 (21:10 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Wed, 11 Jan 2017 22:47:29 +0000 (09:47 +1100)
commit8f37fc70669024040c954f8a74e9d7b209c867d7
tree19758e079baf758332dd6afb92500d86ce7be659
parentb4c44ff08c1154ff3790de89f29520d178e9e0ef
nir: add imprecise flrp optimisation

On BDW:

total instructions in shared programs: 13061890 -> 13061877 (-0.00%)
instructions in affected programs: 2441 -> 2428 (-0.53%)
helped: 13
HURT: 0

total cycles in shared programs: 256612254 -> 256611784 (-0.00%)
cycles in affected programs: 16418 -> 15948 (-2.86%)
helped: 10
HURT: 2

V2: don't use ffma directly

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