mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
SPU LLVM: Omit test_state and spu-null if they are unreachable
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user