mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
SPU LLVM: Avoid sinking stores out of non-loops
This commit is contained in:
parent
5b973448bf
commit
f228ca7961
1 changed files with 9 additions and 0 deletions
|
@ -2340,6 +2340,7 @@ public:
|
|||
}
|
||||
|
||||
bool has_gpr_barriers_in_the_way = false;
|
||||
bool potential_loop = false;
|
||||
|
||||
for (auto [a2, b2] : sucs)
|
||||
{
|
||||
|
@ -2351,6 +2352,7 @@ public:
|
|||
break;
|
||||
}
|
||||
|
||||
potential_loop = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -2390,6 +2392,7 @@ public:
|
|||
break;
|
||||
}
|
||||
|
||||
potential_loop = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -2424,6 +2427,12 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!potential_loop)
|
||||
{
|
||||
spu_log.trace("Avoided postponing r%u store from block 0x%x (not loop)", i, block_q[bi].first);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (auto [a2, b2] : sucs)
|
||||
{
|
||||
if (b2 != bqbi)
|
||||
|
|
Loading…
Add table
Reference in a new issue