From a703460fc6837c4cd4799fa133955c939b5b974c Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 4 May 2019 19:35:13 +0300 Subject: [PATCH] SPU ASMJIT: skip some unused analyser steps May improve performance --- rpcs3/Emu/Cell/SPURecompiler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 275afd9c50..54ef3a8cd2 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -1861,6 +1861,17 @@ const std::vector& spu_recompiler_base::analyse(const be_t* ls, u32 en } } + // Skip some steps for asmjit + if (g_cfg.core.spu_decoder == spu_decoder_type::asmjit) + { + if (result.size() == 1) + { + result.clear(); + } + + return result; + } + // Fill block info for (auto& pred : m_preds) {