From e826098bcba22ec5a2bc7649f8fbaae99785efee Mon Sep 17 00:00:00 2001 From: Malcolm Date: Tue, 15 Sep 2026 13:12:08 -0400 Subject: [PATCH] SPU LLVM: Omit test_state and spu-null if they are unreachable --- rpcs3/Emu/Cell/SPULLVMRecompiler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp index fd2c916473..4659a4d828 100644 --- a/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPULLVMRecompiler.cpp @@ -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();