i965: Remove pointless intel_context parameter from try_copy_propagate.

It's already part of the visitor class.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
Acked-by: Paul Berry <stereotype441@gmail.com>
Acked-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Kenneth Graunke 2013-07-03 00:49:28 -07:00
parent 18a223d323
commit 86f2711722
2 changed files with 3 additions and 5 deletions

View file

@ -391,8 +391,7 @@ public:
vec4_instruction *pre_rhs_inst,
vec4_instruction *last_rhs_inst);
bool try_copy_propagation(struct intel_context *intel,
vec4_instruction *inst, int arg,
bool try_copy_propagation(vec4_instruction *inst, int arg,
src_reg *values[4]);
/** Walks an exec_list of ir_instruction and sends it through this visitor. */

View file

@ -162,8 +162,7 @@ try_constant_propagation(vec4_instruction *inst, int arg, src_reg *values[4])
}
bool
vec4_visitor::try_copy_propagation(struct intel_context *intel,
vec4_instruction *inst, int arg,
vec4_visitor::try_copy_propagation(vec4_instruction *inst, int arg,
src_reg *values[4])
{
/* For constant propagation, we only handle the same constant
@ -306,7 +305,7 @@ vec4_visitor::opt_copy_propagation()
continue;
if (try_constant_propagation(inst, i, values) ||
try_copy_propagation(intel, inst, i, values))
try_copy_propagation(inst, i, values))
progress = true;
}