mesa/src
Elie TOURNIER 9fdaeb7776 nir: add min/max optimisation
Add the following optimisations:

min(x, -x) = -abs(x)
min(x, -abs(x)) = -abs(x)
min(x, abs(x)) = x
max(x, -abs(x)) = x
max(x, abs(x)) = abs(x)
max(x, -x) = abs(x)

shader-db:

total instructions in shared programs: 13067779 -> 13067775 (-0.00%)
instructions in affected programs: 249 -> 245 (-1.61%)
helped: 4
HURT: 0

total cycles in shared programs: 252054838 -> 252054806 (-0.00%)
cycles in affected programs: 504 -> 472 (-6.35%)
helped: 2
HURT: 0

Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2017-01-19 21:44:28 -08:00
..
amd radv: fix include order for installed headers v2 2017-01-19 15:41:38 +00:00
compiler nir: add min/max optimisation 2017-01-19 21:44:28 -08:00
egl egl/wayland: resolve quirky try_damage_buffer() implementation 2017-01-18 16:01:15 +00:00
gallium radeonsi: reject invalid vertex element formats 2017-01-19 16:38:37 +01:00
gbm
getopt
glx glx: unify GLX_SGIX_pbuffer aliased declarations 2017-01-18 16:01:14 +00:00
gtest
hgl
intel anv: set UAV coherence required bit when needed 2017-01-17 07:57:04 +01:00
loader loader/dri3: Unify the style of function pointer calls in structs 2017-01-13 16:24:32 +00:00
mapi mesa: make use of HAVE_FUNC_ATTRIBUTE_ALIAS macro 2017-01-18 16:01:14 +00:00
mesa i965: Remove unnecessary mt->compressed checks 2017-01-19 14:28:18 -08:00
util utils: really remove the __END_DECLS macro 2017-01-18 20:09:57 +00:00
vulkan vulkan/wsi: clarify the severity of lack of DRI3 v2 2017-01-19 15:41:42 +00:00
Makefile.am vulkan: automake: do not use EXTRA_DIST in a conditional 2017-01-18 13:41:32 +00:00
SConscript