mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 14:48:12 +02:00
aco/ra: update register file when updating phi definition
update_renames() fills in the wrong temp id. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Fixes:302cb5c900("aco/ra: remove some redundant code") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17295> (cherry picked from commit84f04fd080)
This commit is contained in:
parent
a80fe86c5c
commit
a9b3df51e0
2 changed files with 2 additions and 1 deletions
|
|
@ -1282,7 +1282,7 @@
|
|||
"description": "aco/ra: update register file when updating phi definition",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "302cb5c90015e2d3e139d575b3c7165519a21228"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2012,6 +2012,7 @@ get_reg_phi(ra_ctx& ctx, IDSet& live_in, RegisterFile& register_file,
|
|||
if (prev_phi) {
|
||||
/* if so, just update that phi's register */
|
||||
prev_phi->definitions[0].setFixed(pc.second.physReg());
|
||||
register_file.fill(prev_phi->definitions[0]);
|
||||
ctx.assignments[prev_phi->definitions[0].tempId()] = {pc.second.physReg(),
|
||||
pc.second.regClass()};
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue