SPU LLVM: Omit test_state and spu-null if they are unreachable

This commit is contained in:
Malcolm
2026-09-16 09:28:19 +03:00
committed by Elad
parent 2d103407f8
commit e826098bcb
+12
View File
@@ -3875,6 +3875,18 @@ public:
fpm.run(*f, fam);
}
if (m_test_state->use_empty())
{
m_test_state->eraseFromParent();
m_test_state = nullptr;
}
if (m_dispatch->use_empty())
{
m_dispatch->eraseFromParent();
m_dispatch = nullptr;
}
// Clear context (TODO)
m_blocks.clear();
m_block_queue.clear();