lima/ppir: print register index and components number for spilled register

It can be useful for debugging purposes

Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:
Vasily Khoruzhick 2019-08-20 07:30:46 -07:00
parent 28d4b456a5
commit 681e99d11c

View file

@ -602,7 +602,9 @@ static bool ppir_regalloc_prog_try(ppir_compiler *comp, bool *spilled)
/* Ask the outer loop to call back in. */
*spilled = true;
ppir_debug("spilled register\n");
ppir_debug("spilled register %d/%d, num_components: %d\n",
chosen->regalloc_index, list_length(&comp->reg_list),
chosen->num_components);
goto err_out;
}