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:
committed by
Marge Bot
parent
2bb98a8f99
commit
d67932f69e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user