From 880f435a7e1a658b7fb81cc01f47bf5af30a655a Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Mon, 27 May 2013 01:41:11 +0400 Subject: [PATCH] r600g/sb: fix peephole optimization for PRED_SETE Fixes incorrect condition that prevented optimization for PRED_SETE/PRED_SETE_INT. Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/sb/sb_peephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sb/sb_peephole.cpp b/src/gallium/drivers/r600/sb/sb_peephole.cpp index db51ad52370..6373b5c3a61 100644 --- a/src/gallium/drivers/r600/sb/sb_peephole.cpp +++ b/src/gallium/drivers/r600/sb/sb_peephole.cpp @@ -56,7 +56,7 @@ void peephole::run_on(container_node* c) { if (n->is_alu_inst()) { alu_node *a = static_cast(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) { -- 2.30.2