mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
PPU/LLVM: Rename ProcessExecutionTrace to better reflect what it does.
This commit is contained in:
parent
359258c3d3
commit
667cb64c29
@ -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;
|
||||
|
@ -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...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user