From 4e75d2c2f74cd61f716722c7723659d2d7f81b72 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 15 May 2019 16:41:57 +0300 Subject: [PATCH] SPU LLVM: don't save $2 in optimized functions --- rpcs3/Emu/Cell/SPURecompiler.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpcs3/Emu/Cell/SPURecompiler.cpp b/rpcs3/Emu/Cell/SPURecompiler.cpp index 6d4a5b089f..80d81f7dac 100644 --- a/rpcs3/Emu/Cell/SPURecompiler.cpp +++ b/rpcs3/Emu/Cell/SPURecompiler.cpp @@ -3896,16 +3896,11 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator if (m_finfo && m_finfo->fn) { - if (index == s_reg_lr || index == 3 || (index >= s_reg_80 && index <= s_reg_127)) + if (index <= 3 || (index >= s_reg_80 && index <= s_reg_127)) { // Don't save some registers in true functions return; } - - if (index == s_reg_sp) - { - return; - } } // Write register to the context