panfrost/midgard: Skip register allocation if there's no work to do
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
7c15a87aea
commit
a5dddc2d42
|
@ -2058,6 +2058,9 @@ allocate_registers(compiler_context *ctx)
|
|||
print_mir_block(block);
|
||||
}
|
||||
|
||||
if (!ctx->temp_count)
|
||||
return;
|
||||
|
||||
/* Let's actually do register allocation */
|
||||
int nodes = ctx->temp_count;
|
||||
struct ra_graph *g = ra_alloc_interference_graph(regs, nodes);
|
||||
|
|
Loading…
Reference in New Issue