From c5e74f6404f5990dddac24d7a7d0b26b2a78e88f Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 19 Mar 2007 04:22:35 +0000 Subject: [PATCH] Minor bug fix. llvm-svn: 35153 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 225565f72ca6..4a6a561fe35b 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -937,7 +937,7 @@ bool LiveIntervals::JoinCopy(MachineInstr *CopyMI, // virtual register. Once the coalescing is done, it cannot be broken and // these are not spillable! If the destination interval uses are far away, // think twice about coalescing them! - if (ReduceJoinPhys && !isDead && + if (ReduceJoinPhys && !mopd->isDead() && MRegisterInfo::isPhysicalRegister(repSrcReg)) { // Small function. No need to worry! unsigned Threshold = allocatableRegs_.count() * 2;