agx: Note that RA proceeds in dominance-order

This is an important invariant for SSA-based RA to work.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
This commit is contained in:
Alyssa Rosenzweig
2022-04-12 18:06:01 -04:00
parent 81477f3809
commit 0c82b5c99c

View File

@@ -153,8 +153,12 @@ agx_ra(agx_context *ctx)
}
}
agx_foreach_block(ctx, block)
/* Assign registers in dominance-order. This coincides with source-order due
* to a NIR invariant, so we do not need special handling for this.
*/
agx_foreach_block(ctx, block) {
agx_ra_assign_local(block, ssa_to_reg, ncomps, ctx->max_register);
}
/* TODO: Coalesce combines */