i965/fs: Allow SIMD16 on pre-SNB when try_replace_with_sel is successful
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 23 Jan 2015 20:31:05 +0000 (12:31 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 24 Jan 2015 01:34:47 +0000 (17:34 -0800)
commitf02f1af9f7582bc9ca685ef240751aa57ce42638
tree1d8ba10256b2a7c58a65a6b6cd4025a40d1c358f
parent0680d170d161f2a370e16e2506cb0bf982a8909d
i965/fs: Allow SIMD16 on pre-SNB when try_replace_with_sel is successful

If try_replace_with_sel is able to replace the flow control with a SEL
instruction, then there is no flow control... failing SIMD16 because
of nonexistent flow control is wrong.

No piglit regressions on any i965 platform in Jenkins.

total instructions in shared programs: 4382707 -> 4382707 (0.00%)
instructions in affected programs:     0 -> 0
helped:                                0
HURT:                                  0
GAINED:                                2089
LOST:                                  0

No other platforms affected in shader-db.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp