PPCAnalyst: Merge duplicate expression in ReorderInstructionsCore()

The type checking is duplicated here, which makes this seem a little
weird, so we can get rid of it.
This commit is contained in:
Lioncash 2024-01-23 16:05:01 -05:00
parent f2292467ad
commit 7ef0262f8a
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)