mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 18:50:55 +00:00
SPU LLVM: fix xfloat regression
It was an old bug with possible hidden use of deleted instructions.
This commit is contained in:
parent
d48dc29e55
commit
2b4da18709
1 changed files with 10 additions and 2 deletions
|
@ -2698,9 +2698,17 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
|
||||||
newphi->addIncoming(xfloat_to_double(ivalue), iblock);
|
newphi->addIncoming(xfloat_to_double(ivalue), iblock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (phi->getParent() == m_block->block)
|
for (auto& b : m_blocks)
|
||||||
{
|
{
|
||||||
m_block->phi[index] = newphi;
|
if (b.second.phi[index] == phi)
|
||||||
|
{
|
||||||
|
b.second.phi[index] = newphi;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (b.second.reg[index] == phi)
|
||||||
|
{
|
||||||
|
b.second.reg[index] = newphi;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reg = newphi;
|
reg = newphi;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue