mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
71a01e33d4
commit
7c694d5342
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue