SPU LLVM: Always write function to cache

This commit is contained in:
Elad 2025-12-01 20:08:34 +02:00
parent 7e8ed5ecc1
commit 51d2c9ce14

View file

@ -1577,11 +1577,9 @@ public:
return add_loc->compiled;
}
bool add_to_file = false;
if (auto& cache = g_fxo->get<spu_cache>(); cache && g_cfg.core.spu_cache && !add_loc->cached.exchange(1))
{
add_to_file = true;
cache.add(func);
}
{
@ -2815,14 +2813,6 @@ public:
fs::write_file(m_spurt->get_cache_path() + "spu-ir.log", fs::write + fs::append, llvm_log);
}
if (auto& cache = g_fxo->get<spu_cache>())
{
if (add_to_file)
{
cache.add(func);
}
}
fmt::throw_exception("Compilation failed");
}