[llvm-branch-commits] [llvm-branch] r88931 - /llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp

Lang Hames lhames at gmail.com
Mon Nov 16 10:30:09 PST 2009


Author: lhames
Date: Mon Nov 16 12:30:09 2009
New Revision: 88931

URL: http://llvm.org/viewvc/llvm-project?rev=88931&view=rev
Log:
Merged r88881 (by hand, since ProcessImplicitDefs has moved since Leela was created). Fixes Anton's testcase in PR5495.

Modified:
    llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=88931&r1=88930&r2=88931&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/branches/Apple/Leela/lib/CodeGen/LiveIntervalAnalysis.cpp Mon Nov 16 12:30:09 2009
@@ -257,6 +257,10 @@
         unsigned SrcReg, DstReg, SrcSubReg, DstSubReg;
         if (tii_->isMoveInstr(*RMI, SrcReg, DstReg, SrcSubReg, DstSubReg) &&
             Reg == SrcReg) {
+          if (RMO.isKill()) {
+            LiveVariables::VarInfo& vi = lv_->getVarInfo(Reg);
+            vi.removeKill(RMI);
+          }
           RMI->setDesc(tii_->get(TargetInstrInfo::IMPLICIT_DEF));
           for (int j = RMI->getNumOperands() - 1, ee = 0; j > ee; --j)
             RMI->RemoveOperand(j);





More information about the llvm-branch-commits mailing list