mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge pull request #2717 from phire/fix-reordering
PPCAnalyst: Don't swap instruction which might cause interrupts.
This commit is contained in:
parent
bfd5c6c69d
commit
452a0f8042
@ -250,6 +250,10 @@ static bool CanSwapAdjacentOps(const CodeOp &a, const CodeOp &b)
|
||||
if (b_info->type != OPTYPE_INTEGER)
|
||||
return false;
|
||||
|
||||
// And it's possible a might raise an interrupt too (fcmpo/fcmpu)
|
||||
if (a_info->type != OPTYPE_INTEGER)
|
||||
return false;
|
||||
|
||||
// Check that we have no register collisions.
|
||||
// That is, check that none of b's outputs matches any of a's inputs,
|
||||
// and that none of a's outputs matches any of b's inputs.
|
||||
|
Loading…
Reference in New Issue
Block a user