mesa/src
Matt Turner 13de9f03f1 i965/fs: New peephole optimization to generate SEL.
fs_visitor::try_replace_with_sel optimizes only if statements whose
"then" and "else" bodies contain a single MOV instruction. It also
could not handle constant arguments, since they cause an extra MOV
immediate to be generated (since we haven't run constant propagation,
there are more than the single MOV).

This peephole fixes both of these and operates as a normal optimization
pass.

fs_visitor::try_replace_with_sel is still arguably necessary, since it
runs before pull constant loads are lowered.

total instructions in shared programs: 1559129 -> 1545833 (-0.85%)
instructions in affected programs:     167120 -> 153824 (-7.96%)
GAINED:                                13
LOST:                                  6

Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-12-04 20:05:44 -08:00
..
egl wayland: Add an extension to create wl_buffers from EGLImages 2013-12-04 17:04:57 -08:00
gallium nouveau: Add lots of comments to the buffer transfer logic 2013-12-04 16:38:50 +01:00
gbm gbm/dri: hide extension loader symbols 2013-11-25 13:13:47 +01:00
getopt
glsl glsl: Use fabs() on floating point values. 2013-12-04 20:05:43 -08:00
glx glx: Add missing null check in gxl/dri2_glx.c 2013-12-03 14:35:41 -07:00
gtest gtest: enable subdir-objects to prevent automake warnings 2013-11-16 14:01:27 +00:00
mapi Fix 'make check' in src/mapi/glapi/tests when builddir != srcdir 2013-12-01 12:30:25 +00:00
mesa i965/fs: New peephole optimization to generate SEL. 2013-12-04 20:05:44 -08:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-12 15:16:22 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00