nir: Add a dedicated ffma peephole optimization
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 21 Mar 2015 19:21:21 +0000 (12:21 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Apr 2015 19:51:04 +0000 (12:51 -0700)
commita8c8b3b8720bb7ce8ac1cb94815ed36d8c881f66
treebddfa18945fa28d40c53070ab113e3d3efc6dfc0
parente06a3d0282ef018ae4a28b091a632c6a2e8c7c52
nir: Add a dedicated ffma peephole optimization

i965/nir: Use the dedicated ffma peephole

total instructions in shared programs: 4418748 -> 4394618 (-0.55%)
instructions in affected programs:     1292790 -> 1268660 (-1.87%)
helped:                                5999
HURT:                                  457
GAINED:                                4
LOST:                                  9

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/Makefile.sources
src/glsl/nir/nir_opt_peephole_ffma.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_fs_nir.cpp