mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
agx: Don't use ssa_to_reg across blocks
This is a footgun with live range spltiting. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>
This commit is contained in:
parent
964a67fda4
commit
d035908550
1 changed files with 3 additions and 1 deletions
|
|
@ -708,7 +708,9 @@ reserve_live_in(struct ra_ctx *rctx)
|
|||
set_ssa_to_reg(rctx, i, base);
|
||||
} else {
|
||||
/* If we don't emit a phi, there is already a unique register */
|
||||
base = rctx->ssa_to_reg[i];
|
||||
agx_foreach_predecessor(rctx->block, pred) {
|
||||
base = (*pred)->ssa_to_reg_out[i];
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned j = 0; j < rctx->ncomps[i]; ++j) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue