This foreach_inst_in_block_reverse_starting_from loop only applies
CMP, MOV, and AND. AND instructions break out of the loop before this
point.
Reviewed-by: Marcin Ĺšlusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12045>
cond != BRW_CONDITIONAL_G)
break;
- if (inst->opcode != BRW_OPCODE_MOV &&
- inst->opcode != BRW_OPCODE_CMP)
- break;
+ assert(inst->opcode == BRW_OPCODE_MOV ||
+ inst->opcode == BRW_OPCODE_CMP);
/* inst->src[1].is_zero() was tested before, but be safe
* against possible future changes in this code.