Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/dxil.c:
{ const struct sm6_block *block = function->blocks[i];
/* Space for the label and terminator. */
if (!sm6_parser_require_space(sm6, block->instruction_count + 2))
/* Space for a branch, label and terminator. */
if (!sm6_parser_require_space(sm6, block->instruction_count + block->phi_count + 3))
Does the "branch" here still applies? Now the first block is assumed to have a label too.