diff --git a/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp b/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp index e4e455821b..da3e44a8a1 100644 --- a/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp +++ b/rpcs3/Emu/Cell/PPULLVMRecompiler.cpp @@ -344,7 +344,7 @@ void RecompilationEngine::Task() { if (!m_current_execution_traces.empty()) { for (u32 address : m_current_execution_traces) - work_done_this_iteration |= ProcessExecutionTrace(address); + work_done_this_iteration |= IncreaseHitCounterAndBuild(address); } if (!work_done_this_iteration) { @@ -374,7 +374,7 @@ void RecompilationEngine::Task() { s_the_instance = nullptr; // Can cause deadlock if this is the last instance. Need to fix this. } -bool RecompilationEngine::ProcessExecutionTrace(u32 address) { +bool RecompilationEngine::IncreaseHitCounterAndBuild(u32 address) { auto It = m_block_table.find(address); if (It == m_block_table.end()) It = m_block_table.emplace(address, BlockEntry(address)).first; diff --git a/rpcs3/Emu/Cell/PPULLVMRecompiler.h b/rpcs3/Emu/Cell/PPULLVMRecompiler.h index 6668de5571..155df609ed 100644 --- a/rpcs3/Emu/Cell/PPULLVMRecompiler.h +++ b/rpcs3/Emu/Cell/PPULLVMRecompiler.h @@ -890,9 +890,9 @@ namespace ppu_recompiler_llvm { RecompilationEngine & operator = (const RecompilationEngine & other) = delete; RecompilationEngine & operator = (RecompilationEngine && other) = delete; - /// Process an execution trace. - /// Returns true if a block was compiled - bool ProcessExecutionTrace(u32); + /// Increase usage counter for block starting at addr and compile it if threshold was reached. + /// Returns true if block was compiled + bool IncreaseHitCounterAndBuild(u32 addr); /** * Analyse block to get useful info (function called, has indirect branch...)