From c25d3fe71e8e93dc956b3562785625e7746763f7 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 12 Nov 2012 23:59:48 +0000 Subject: [PATCH] Cleanup -join-splitedges. Make the loop more obvious. llvm-svn: 167785 --- llvm/lib/CodeGen/RegisterCoalescer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 36f6b35..7d69176 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -234,11 +234,8 @@ static bool isSplitEdge(const MachineBasicBlock *MBB) { for (MachineBasicBlock::const_iterator MII = MBB->begin(), E = MBB->end(); MII != E; ++MII) { - if (MII->isCopyLike()) - continue; - if (MII->isUnconditionalBranch()) - continue; - return false; + if (!MII->isCopyLike() || !MII->isUnconditionalBranch()) + return false; } return true; } -- 2.7.4