+ if ((inst->opcode != BRW_OPCODE_IF &&
+ inst->opcode != BRW_OPCODE_WHILE) &&
+ inst->dst.is_null() &&
+ !inst->has_side_effects() &&
+ !inst->writes_flag() &&
+ !inst->writes_accumulator) {
+ inst->opcode = BRW_OPCODE_NOP;
+ progress = true;
+ continue;
+ }
+