summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp b/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
index 04901a97e40..0dd609121ca 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_dead_code_eliminate.cpp
@@ -70,17 +70,10 @@ fs_visitor::dead_code_eliminate()
}
}
- if (inst->dst.is_null() && inst->flags_written()) {
- if (!(flag_live[0] & inst->flags_written())) {
- inst->opcode = BRW_OPCODE_NOP;
- progress = true;
- }
- }
-
if (inst->dst.is_null() &&
!inst->is_control_flow() &&
!inst->has_side_effects() &&
- !inst->flags_written() &&
+ !(flag_live[0] & inst->flags_written()) &&
!inst->writes_accumulator) {
inst->opcode = BRW_OPCODE_NOP;
progress = true;