diff options
author | Matt Turner <[email protected]> | 2014-12-03 23:32:30 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-05 09:49:42 -0800 |
commit | 15f6118b77cbe42fb997174715bce4c2548aa1f1 (patch) | |
tree | fb25d6b8e0ae4ed846aab1232b24e34849a53497 | |
parent | 0d3cc01b0b092271938ce2cf2b77d27dc385e4d8 (diff) |
i965/vec4: Don't DCE flag-writing insts because dest was unused.
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp index b8370ba63ec..9604e608778 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp @@ -103,7 +103,7 @@ vec4_visitor::dead_code_eliminate() progress = true; if (inst->dst.writemask == 0) { - if (inst->writes_accumulator) { + if (inst->writes_accumulator || inst->writes_flag()) { inst->dst = dst_reg(retype(brw_null_reg(), inst->dst.type)); } else { inst->opcode = BRW_OPCODE_NOP; |