mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 00:59:18 +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
@ -2698,9 +2698,17 @@ class spu_llvm_recompiler : public spu_recompiler_base, public cpu_translator
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user