vec4_instruction *pre_rhs_inst,
vec4_instruction *last_rhs_inst);
- bool try_copy_propagate(vec4_instruction *inst, int arg,
- src_reg *values[4]);
-
/** Walks an exec_list of ir_instruction and sends it through this visitor. */
void visit_instructions(const exec_list *list);
opcode == BRW_OPCODE_NOT);
}
-bool
-vec4_visitor::try_copy_propagate(vec4_instruction *inst, int arg,
- src_reg *values[4])
+static bool
+try_copy_propagate(struct brw_context *brw, vec4_instruction *inst,
+ int arg, src_reg *values[4])
{
/* For constant propagation, we only handle the same constant
* across all 4 channels. Some day, we should handle the 8-bit
continue;
if (try_constant_propagate(brw, inst, i, values) ||
- try_copy_propagate(inst, i, values))
+ try_copy_propagate(brw, inst, i, values))
progress = true;
}