intel/fs: Remove redundant inst->opcode checks in cmod prop
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>
This commit is contained in:
parent
3afefb0818
commit
4f6c5da025
|
@ -488,9 +488,8 @@ opt_cmod_propagation_local(const intel_device_info *devinfo, bblock_t *block)
|
|||
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.
|
||||
|
|
Loading…
Reference in New Issue