Skip to content

Commit

Permalink
Merge pull request #2717 from phire/fix-reordering
Browse files Browse the repository at this point in the history
PPCAnalyst: Don't swap instruction which might cause interrupts.
  • Loading branch information
phire committed Jul 21, 2015
2 parents 53bc147 + a31ebb9 commit 9ae8e38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/Core/PowerPC/PPCAnalyst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9ae8e38

Please sign in to comment.