diff --git a/.pick_status.json b/.pick_status.json index bd83a9acdf3..488ec9aafa7 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -202,7 +202,7 @@ "description": "aco: don't consider a phi trivial if same's register doesn't match the def", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": "69b6069dd288455cdb2655284c592a85d17df273" }, diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 5c79c5c9973..79b10ea4cf0 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -1675,7 +1675,7 @@ void try_remove_trivial_phi(ra_ctx& ctx, Temp temp) assert(t == same || op.physReg() == def.physReg()); continue; } - if (same != Temp()) + if (same != Temp() || op.physReg() != def.physReg()) return; same = t;