mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 10:30:23 +01:00
aco/print_ir: don't print disconnected empty blocks
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32330>
This commit is contained in:
parent
2bb98a8f99
commit
d67932f69e
1 changed files with 3 additions and 0 deletions
|
|
@ -921,6 +921,9 @@ void
|
|||
aco_print_block(enum amd_gfx_level gfx_level, const Block* block, FILE* output, unsigned flags,
|
||||
const Program* program)
|
||||
{
|
||||
if (block->instructions.empty() && block->linear_preds.empty())
|
||||
return;
|
||||
|
||||
fprintf(output, "BB%d\n", block->index);
|
||||
fprintf(output, "/* logical preds: ");
|
||||
for (unsigned pred : block->logical_preds)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue