diff --git a/src/intel/compiler/brw_fs_cmod_propagation.cpp b/src/intel/compiler/brw_fs_cmod_propagation.cpp index 770e417e47f..c3c59dc1b05 100644 --- a/src/intel/compiler/brw_fs_cmod_propagation.cpp +++ b/src/intel/compiler/brw_fs_cmod_propagation.cpp @@ -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.