DSPJitRegCache: Take DynamicReg instances by reference in FlushRegs()

A DynamicReg instance is 80 bytes in size, so this just gets rid of some
unnecessary copy churn.
This commit is contained in:
Lioncash 2024-02-28 10:26:18 -05:00
parent 5a81916ee9
commit e52109a356
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ void DSPJitRegCache::FlushRegs(DSPJitRegCache& cache, bool emit)
// free all host regs that are not used for the same guest reg
for (size_t i = 0; i < m_regs.size(); i++)
{
const auto reg = m_regs[i];
const auto cached_reg = cache.m_regs[i];
const auto& reg = m_regs[i];
const auto& cached_reg = cache.m_regs[i];
if (cached_reg.loc.GetSimpleReg() != reg.loc.GetSimpleReg() && reg.loc.IsSimpleReg())
{