diff --git a/src/intel/compiler/brw_fs_register_coalesce.cpp b/src/intel/compiler/brw_fs_register_coalesce.cpp index 671ced5bc95..51e9af4a72f 100644 --- a/src/intel/compiler/brw_fs_register_coalesce.cpp +++ b/src/intel/compiler/brw_fs_register_coalesce.cpp @@ -330,10 +330,12 @@ fs_visitor::register_coalesce() if (progress) { foreach_block_and_inst_safe (block, backend_instruction, inst, cfg) { if (inst->opcode == BRW_OPCODE_NOP) { - inst->remove(block); + inst->remove(block, true); } } + cfg->adjust_block_ips(); + invalidate_analysis(DEPENDENCY_INSTRUCTIONS); }