Merge pull request #12522 from lioncash/ppcanalyst

PPCAnalyst: Merge duplicate expression in ReorderInstructionsCore()
This commit is contained in:
Admiral H. Curtiss 2024-01-26 20:29:16 +01:00 committed by GitHub
commit e740e32562
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ void PPCAnalyzer::ReorderInstructionsCore(u32 instructions, CodeOp* code, bool r
// Reorder integer compares, rlwinm., and carry-affecting ops
// (if we add more merged branch instructions, add them here!)
if ((type == ReorderType::CROR && isCror(a)) || (type == ReorderType::Carry && isCarryOp(a)) ||
(type == ReorderType::CMP && (type == ReorderType::CMP && a.crOut)))
(type == ReorderType::CMP && a.crOut))
{
// once we're next to a carry instruction, don't move away!
if (type == ReorderType::Carry && i != start)