mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pan/midgard: Calculate temp_count for liveness
This needs to be correct or the analysis fails. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
ad5fcac005
commit
39a4b3ebe9
2 changed files with 3 additions and 1 deletions
|
|
@ -117,6 +117,8 @@ mir_compute_liveness(compiler_context *ctx)
|
|||
if (ctx->metadata & MIDGARD_METADATA_LIVENESS)
|
||||
return;
|
||||
|
||||
mir_compute_temp_count(ctx);
|
||||
|
||||
/* List of midgard_block */
|
||||
struct set *work_list = _mesa_set_create(ctx,
|
||||
_mesa_hash_pointer,
|
||||
|
|
|
|||
|
|
@ -557,7 +557,7 @@ mir_compute_temp_count(compiler_context *ctx)
|
|||
|
||||
mir_foreach_instr_global(ctx, ins) {
|
||||
if (ins->dest < SSA_FIXED_MINIMUM)
|
||||
max_dest = MAX2(max_dest, ins->dest);
|
||||
max_dest = MAX2(max_dest, ins->dest + 1);
|
||||
}
|
||||
|
||||
ctx->temp_count = max_dest;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue