Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.244 -> 1.245 --- Log message: Only worry about intervening kill if there are more than one live ranges in the interval. --- Diffs of the changes: (+5 -3) LiveIntervalAnalysis.cpp | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.244 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.245 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.244 Mon May 14 16:10:05 2007 +++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Mon May 14 16:23:51 2007 @@ -1073,9 +1073,11 @@ // have clobbered values for this range. if (MRegisterInfo::isPhysicalRegister(repDstReg)) { // Unset unnecessary kills. - for (LiveInterval::Ranges::const_iterator I = SrcInt.begin(), - E = SrcInt.end(); I != E; ++I) - unsetRegisterKills(I->start, I->end, repDstReg); + if (!DstInt.containsOneValue()) { + for (LiveInterval::Ranges::const_iterator I = SrcInt.begin(), + E = SrcInt.end(); I != E; ++I) + unsetRegisterKills(I->start, I->end, repDstReg); + } // Update the liveintervals of sub-registers. for (const unsigned *AS = mri_->getSubRegisters(repDstReg); *AS; ++AS) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits