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:
@@ -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);
|
agx_ra_assign_local(block, ssa_to_reg, ncomps, ctx->max_register);
|
||||||
|
}
|
||||||
|
|
||||||
/* TODO: Coalesce combines */
|
/* TODO: Coalesce combines */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user