mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 20:30:12 +01:00
pan/bi: Explicit zero reg_live_{in, out} when needed
I want to use these fields for a similar purpose in the register allocator, so they won't be zero anymore for scheduling. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
This commit is contained in:
parent
98f072e21b
commit
8d4ce240be
1 changed files with 5 additions and 0 deletions
|
|
@ -129,6 +129,11 @@ bi_postra_liveness(bi_context *ctx)
|
|||
struct set_entry *cur;
|
||||
cur = _mesa_set_add(work_list, pan_exit_block(&ctx->blocks));
|
||||
|
||||
bi_foreach_block(ctx, _block) {
|
||||
bi_block *block = (bi_block *) _block;
|
||||
block->reg_live_out = block->reg_live_in = 0;
|
||||
}
|
||||
|
||||
do {
|
||||
bi_block *blk = (struct bi_block *) cur->key;
|
||||
_mesa_set_remove(work_list, cur);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue