rsx/cfg: Log a warning when encountering empty IF blocks with ELSE aliasing

- Hardware tests confirm this is correct behavior, the condition just inverts
This commit is contained in:
kd-11 2026-03-19 03:06:19 +03:00 committed by kd-11
parent d54e54b66d
commit 3c68c36fa0

View File

@ -218,6 +218,7 @@ namespace rsx::assembler
// Empty IF block. We co-opt the ELSE block as the IF and invert the condition.
auto& inst = parent->instructions.back();
FP::invert_conditional_execution_mask(&inst);
rsx_log.warning("CFG: Condition at L%u was inverted to cover empty IF block.");
}
else if (end_addr != else_addr)
{