i965/fs: Optimize emit_bool_to_cond_code for logical exprs.
authorMatt Turner <mattst88@gmail.com>
Sat, 9 Aug 2014 04:04:26 +0000 (21:04 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 19 Aug 2014 01:35:53 +0000 (18:35 -0700)
commitcc60a487d1bd2b34a07ce6cbe5161684772ecd70
tree24e5c2543a191ee608a2a1b7280d12d9523e0199
parent2a6b6621d83b83f4ce499cd0c5b8eb824f07d25d
i965/fs: Optimize emit_bool_to_cond_code for logical exprs.

AND, OR, and XOR can generate the conditional code directly.

total instructions in shared programs: 4293335 -> 4292303 (-0.02%)
instructions in affected programs:     121408 -> 120376 (-0.85%)

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp