Minor bug fix.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 19 Mar 2007 04:22:35 +0000 (04:22 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 19 Mar 2007 04:22:35 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 225565f72ca691a29989aef639beceb7109f3982..4a6a561fe35bcdb7d93b01988b5f62b053f30114 100644 (file)
@@ -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;