mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 03:08:36 +12:00
SPU LLVM: don't save $2 in optimized functions
This commit is contained in:
parent
adc7d96683
commit
4e75d2c2f7
1 changed files with 1 additions and 6 deletions
|
@ -3896,16 +3896,11 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
|
||||||
|
|
||||||
if (m_finfo && m_finfo->fn)
|
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
|
// Don't save some registers in true functions
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index == s_reg_sp)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write register to the context
|
// Write register to the context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue