From: Kenneth Graunke Date: Thu, 16 Oct 2014 02:13:16 +0000 (-0700) Subject: i965/vec4: Delete some dead code in visit(ir_expression *). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb36e79f96101528080917c469dea3b525df2a32;p=mesa.git i965/vec4: Delete some dead code in visit(ir_expression *). Nothing uses the vector_elements temporary variable. Setting this->result.file is dead because we overwrite this->result a few lines later. Signed-off-by: Kenneth Graunke Reviewed-by: Ian Romanick Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 0caa7a50f39..0b2b9ca7009 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1289,14 +1289,6 @@ vec4_visitor::visit(ir_expression *ir) assert(!ir->operands[operand]->type->is_matrix()); } - int vector_elements = ir->operands[0]->type->vector_elements; - if (ir->operands[1]) { - vector_elements = MAX2(vector_elements, - ir->operands[1]->type->vector_elements); - } - - this->result.file = BAD_FILE; - /* Storage for our result. Ideally for an assignment we'd be using * the actual storage for the result here, instead. */