i965/vec4: Delete some dead code in visit(ir_expression *).
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 16 Oct 2014 02:13:16 +0000 (19:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 22 Oct 2014 04:13:37 +0000 (21:13 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 0caa7a50f3980e4214fc689dd6728cde55256abd..0b2b9ca7009b07ad84d5001ac7fe9dc64da4ff95 100644 (file)
@@ -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.
     */