[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
Evan Cheng
evan.cheng at apple.com
Fri Mar 2 02:41:32 PST 2007
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.218 -> 1.219
---
Log message:
Dead live-in detection bug.
---
Diffs of the changes: (+2 -2)
LiveIntervalAnalysis.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.218 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.219
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.218 Wed Feb 28 20:05:35 2007
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Mar 2 04:41:15 2007
@@ -938,11 +938,11 @@
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) {
More information about the llvm-commits
mailing list