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:
committed by
Marge Bot
parent
98f072e21b
commit
8d4ce240be
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user