summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-19 04:22:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-19 04:22:35 +0000
commit79b098445b93e551dba79aeb9584ee24be0d3dae (patch)
tree9c7bff3986c420073be055ce0e52ad39bb78b701 /lib/CodeGen/LiveIntervalAnalysis.cpp
parentd435dbcbf9fb69fd5dc9d8c5a886ea3200fa8f83 (diff)
downloadllvm-79b098445b93e551dba79aeb9584ee24be0d3dae.tar.gz
llvm-79b098445b93e551dba79aeb9584ee24be0d3dae.tar.bz2
llvm-79b098445b93e551dba79aeb9584ee24be0d3dae.tar.xz
Minor bug fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 225565f72c..4a6a561fe3 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/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;