[llvm-commits] [llvm] r55000 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Owen Anderson resistor at mac.com
Tue Aug 19 13:09:53 PDT 2008


Author: resistor
Date: Tue Aug 19 15:09:52 2008
New Revision: 55000

URL: http://llvm.org/viewvc/llvm-project?rev=55000&view=rev
Log:
The fast-path still needs to set kill markers and spill/restore points as appropriate.
With this patch, all of MultiSource/Applications and all of SPEC2000/2006 pass with
the SimpleSpiller and this fast-path enabled.

Modified:
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=55000&r1=54999&r2=55000&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Tue Aug 19 15:09:52 2008
@@ -1666,12 +1666,15 @@
                    VNMap[MO.getParent()]);
       DOUT << " +" << LR;
       nI.addRange(LR);
+      vrm.addRestorePoint(NewVReg, MO.getParent());
+      MO.setIsKill(true);
     }
     if (HasDef) {
       LiveRange LR(getDefIndex(index), getStoreIndex(index),
                    VNMap[MO.getParent()]);
       DOUT << " +" << LR;
       nI.addRange(LR);
+      vrm.addSpillPoint(NewVReg, true, MO.getParent());
     }
     
     if (newInt)





More information about the llvm-commits mailing list