mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
irjit: Update clobber flag on inst swap.
Fixes IR in Persona 3.
This commit is contained in:
parent
9dcb70d502
commit
5354459476
1 changed files with 2 additions and 0 deletions
|
@ -835,6 +835,8 @@ bool PurgeTemps(const IRWriter &in, IRWriter &out, const IROptions &opts) {
|
|||
insts[check.index] = IRReplaceDestGPR(insts[check.index], check.reg, inst.dest);
|
||||
lastWrittenTo[inst.dest] = check.index;
|
||||
check.reg = inst.dest;
|
||||
// Update the read by exit flag to match the new reg.
|
||||
check.readByExit = inst.dest < IRTEMP_0 || inst.dest > IRTEMP_LR_SHIFT;
|
||||
// And swap the args for this mov, since we changed the other dest. We'll optimize this out later.
|
||||
std::swap(inst.dest, inst.src1);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue