diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-19 04:22:35 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-19 04:22:35 +0000 |
commit | c5e74f6404f5990dddac24d7a7d0b26b2a78e88f (patch) | |
tree | 301cd6be061d0fb8521c4db0e164d5d57d21dfe9 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | f01f87bc63c8cf0a8597ce8fd9ca7f39acbff11e (diff) | |
download | bcm5719-llvm-c5e74f6404f5990dddac24d7a7d0b26b2a78e88f.tar.gz bcm5719-llvm-c5e74f6404f5990dddac24d7a7d0b26b2a78e88f.zip |
Minor bug fix.
llvm-svn: 35153
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 225565f72ca..4a6a561fe35 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; |