bi: Add loop_header in bi_block

Will be used for some DCE changes

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30484>
This commit is contained in:
Mary Guillemard 2024-08-02 09:42:34 +02:00
parent 71a01e33d4
commit 7c694d5342
2 changed files with 2 additions and 0 deletions

View file

@ -4056,6 +4056,7 @@ emit_loop(bi_context *ctx, nir_loop *nloop)
ctx->continue_block = create_empty_block(ctx);
ctx->break_block = create_empty_block(ctx);
ctx->after_block = ctx->continue_block;
ctx->after_block->loop_header = true;
/* Emit the body itself */
emit_cf_list(ctx, &nloop->body);

View file

@ -713,6 +713,7 @@ typedef struct bi_block {
struct bi_block *successors[2];
struct util_dynarray predecessors;
bool unconditional_jumps;
bool loop_header;
/* Per 32-bit word live masks for the block indexed by node */
uint8_t *live_in;