From 2344abc939b29ab80bbd247995a0ceb2efa5938b Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 13 Nov 2012 17:37:46 +0000 Subject: [PATCH] Fix -join-splitedges: my previous "cleanup" broke it. Working on reducing unit tests. This won't be enabled unless a subtarget enables misched. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167851 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegisterCoalescer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp index 8e6533c7479..5ec0aece1e5 100644 --- a/lib/CodeGen/RegisterCoalescer.cpp +++ b/lib/CodeGen/RegisterCoalescer.cpp @@ -253,7 +253,7 @@ static bool isSplitEdge(const MachineBasicBlock *MBB) { for (MachineBasicBlock::const_iterator MII = MBB->begin(), E = MBB->end(); MII != E; ++MII) { - if (!MII->isCopyLike() || !MII->isUnconditionalBranch()) + if (!MII->isCopyLike() && !MII->isUnconditionalBranch()) return false; } return true;