SPU: minor optimization

This commit is contained in:
Nekotekina 2017-07-29 16:07:03 +03:00
parent aeb01bd216
commit f564a72d03
3 changed files with 7 additions and 7 deletions

View file

@ -29,7 +29,7 @@ void spu_recompiler_base::enter(SPUThread& spu)
// Check shared db if we dont have a match
if (!func || !std::equal(func->data.begin(), func->data.end(), _ls + spu.pc / 4, [](const be_t<u32>& l, const be_t<u32>& r) { return *(u32*)(u8*)&l == *(u32*)(u8*)&r; }))
{
func = spu.spu_db->analyse(_ls, spu.pc).get();
func = spu.spu_db->analyse(_ls, spu.pc);
spu.compiled_cache[spu.pc / 4] = func;
}