[llvm-commits] CVS: llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 2 01:01:11 PDT 2004


Changes in directory llvm/lib/Target/SparcV9/LiveVar:

FunctionLiveVarInfo.cpp updated: 1.54 -> 1.55

---
Log message:

Convert to the new TargetMachine interface.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp
diff -u llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp:1.54 llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp:1.55
--- llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp:1.54	Tue Feb 24 13:45:45 2004
+++ llvm/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp	Wed Jun  2 00:54:53 2004
@@ -295,12 +295,12 @@
     // If the current machine instruction has delay slots, mark values
     // used by this instruction as live before and after each delay slot
     // instruction (After(MI) is the same as Before(MI+1) except for last MI).
-    if (unsigned DS = TM.getInstrInfo().getNumDelaySlots(MI->getOpcode())) {
+    if (unsigned DS = TM.getInstrInfo()->getNumDelaySlots(MI->getOpcode())) {
       MachineBasicBlock::const_iterator fwdMII = MII.base(); // ptr to *next* MI
       for (unsigned i = 0; i < DS; ++i, ++fwdMII) {
         assert(fwdMII != MIVec.end() && "Missing instruction in delay slot?");
         const MachineInstr* DelaySlotMI = fwdMII;
-        if (! TM.getInstrInfo().isNop(DelaySlotMI->getOpcode())) {
+        if (! TM.getInstrInfo()->isNop(DelaySlotMI->getOpcode())) {
           set_union(*MInst2LVSetBI[DelaySlotMI], *NewSet);
           if (i+1 == DS)
             set_union(*MInst2LVSetAI[DelaySlotMI], *NewSet);





More information about the llvm-commits mailing list