From c860aa2107dd1c4753cd1f56e77446f209833482 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Thu, 14 May 2026 07:52:16 +0300 Subject: [PATCH] SPU Analyzer: Fix initiate_patterns function --- rpcs3/Emu/Cell/SPUCommonRecompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp index a955e09480..f17380f467 100644 --- a/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp +++ b/rpcs3/Emu/Cell/SPUCommonRecompiler.cpp @@ -5184,7 +5184,7 @@ spu_program spu_recompiler_base::analyse(const be_t* ls, u32 entry_point, s // Check loop connector block (must jump to block-next or to loop-start) u32 targets_count = 0; - for (u32 target : get_block_targets(first_pred_of_loop)) + for (u32 target : get_block_targets(!invalid ? first_pred_of_loop : bpc)) { valid = true; targets_count++;