summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-02 10:41:15 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-02 10:41:15 +0000
commit9d615d1e70f08a037870c330e99a226a6da0a912 (patch)
treedca949c974d467acc55a442a080c9e1d1c940c28 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentb7bef1bc747841032b728b8666ee826e96637926 (diff)
downloadbcm5719-llvm-9d615d1e70f08a037870c330e99a226a6da0a912.tar.gz
bcm5719-llvm-9d615d1e70f08a037870c330e99a226a6da0a912.zip
Dead live-in detection bug.
llvm-svn: 34843
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index a5907d6067e..26d741f6898 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -938,11 +938,11 @@ bool LiveIntervals::JoinCopy(MachineInstr *CopyMI,
if (JoinIntervals(DestInt, SrcInt)) {
if (isDead) {
// Result of the copy is dead. Propagate this property.
- if (SrcStart == 0 && MRegisterInfo::isPhysicalRegister(SrcReg)) {
+ if (SrcStart == 0 && MRegisterInfo::isPhysicalRegister(repSrcReg)) {
// Live-in to the function but dead. Remove it from MBB live-in set.
// JoinIntervals may end up swapping the two intervals.
MachineBasicBlock *MBB = CopyMI->getParent();
- MBB->removeLiveIn(SrcReg);
+ MBB->removeLiveIn(repSrcReg);
} else {
MachineInstr *SrcMI = getInstructionFromIndex(SrcStart);
if (SrcMI) {
OpenPOWER on IntegriCloud