diff --git a/.pick_status.json b/.pick_status.json index 087265dd6ec..d04a7d8c32b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2317,7 +2317,7 @@ "description": "aco: Mark exec write used when it writes other registers.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "0211e66f65522caa1f6855b937ae4fc18af0c937" }, diff --git a/src/amd/compiler/aco_ssa_elimination.cpp b/src/amd/compiler/aco_ssa_elimination.cpp index 5bd545c7460..f9260026242 100644 --- a/src/amd/compiler/aco_ssa_elimination.cpp +++ b/src/amd/compiler/aco_ssa_elimination.cpp @@ -604,9 +604,10 @@ eliminate_useless_exec_writes_in_block(ssa_elimination_ctx& ctx, Block& block) bool writes_other = std::any_of(instr->definitions.begin(), instr->definitions.end(), [](const Definition& def) -> bool { return def.physReg() != exec && def.physReg() != scc; }); - if (!writes_other) + if (!writes_other) { instr.reset(); - continue; + continue; + } } /* For a newly encountered exec write, clear the used flag. */