Mesa (master): i965/vec4: Delete some dead code in visit(ir_expression *).
Kenneth Graunke
kwg at kemper.freedesktop.org
Wed Oct 22 04:12:01 UTC 2014
Module: Mesa
Branch: master
Commit: cb36e79f96101528080917c469dea3b525df2a32
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb36e79f96101528080917c469dea3b525df2a32
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Oct 15 19:13:16 2014 -0700
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 <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 0caa7a5..0b2b9ca 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.
*/
More information about the mesa-commit
mailing list