mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
SPU LLVM: Optimize spu_idisable
This commit is contained in:
parent
1c793edf7d
commit
f9f2657c98
2 changed files with 19 additions and 0 deletions
|
|
@ -2607,6 +2607,12 @@ void spu_recompiler::BI(spu_opcode_t op)
|
|||
{
|
||||
spu_log.error("[0x%x] BI: no targets", m_pos);
|
||||
}
|
||||
else if (op.d && found->second.size() == 1 && found->second[0] == spu_branch_target(m_pos, 1))
|
||||
{
|
||||
// Interrupts-disable pattern
|
||||
c->mov(SPU_OFF_8(interrupts_enabled), 0);
|
||||
return;
|
||||
}
|
||||
|
||||
c->mov(*addr, SPU_OFF_32(gpr, op.ra, &v128::_u32, 3));
|
||||
c->and_(*addr, 0x3fffc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue