r600g/sb: fix peephole optimization for PRED_SETE
authorVadim Girlin <vadimgirlin@gmail.com>
Sun, 26 May 2013 21:41:11 +0000 (01:41 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Sun, 26 May 2013 21:45:07 +0000 (01:45 +0400)
Fixes incorrect condition that prevented optimization for
PRED_SETE/PRED_SETE_INT.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/sb/sb_peephole.cpp

index db51ad523701eb07c4ecc78e18fa94cbb66ac9aa..6373b5c3a610803410899f440a2037187a82fa4c 100644 (file)
@@ -56,7 +56,7 @@ void peephole::run_on(container_node* c) {
                        if (n->is_alu_inst()) {
                                alu_node *a = static_cast<alu_node*>(n);
 
-                               if (a->bc.op_ptr->flags & AF_CC_MASK) {
+                               if (a->bc.op_ptr->flags & (AF_PRED | AF_SET | AF_CMOV)) {
                                        optimize_cc_op(a);
                                } else if (a->bc.op == ALU_OP1_FLT_TO_INT) {