[llvm-commits] CVS: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Fri Feb 13 15:02:30 PST 2004


Changes in directory llvm/lib/CodeGen/InstrSched:

SchedGraph.cpp updated: 1.57 -> 1.58

---
Log message:

Remove getAllocatedRegNum(). Use getReg() instead.


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

Index: llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
diff -u llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.57 llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.58
--- llvm/lib/CodeGen/InstrSched/SchedGraph.cpp:1.57	Wed Feb 11 20:27:10 2004
+++ llvm/lib/CodeGen/InstrSched/SchedGraph.cpp	Fri Feb 13 15:01:20 2004
@@ -487,11 +487,11 @@
     // if this references a register other than the hardwired
     // "zero" register, record the reference.
     if (mop.hasAllocatedReg()) {
-      int regNum = mop.getAllocatedRegNum();
+      unsigned regNum = mop.getReg();
       
       // If this is not a dummy zero register, record the reference in order
       if (regNum != target.getRegInfo().getZeroRegNum())
-        regToRefVecMap[mop.getAllocatedRegNum()]
+        regToRefVecMap[mop.getReg()]
           .push_back(std::make_pair(node, i));
 
       // If this is a volatile register, add the instruction to callDepVec
@@ -528,9 +528,9 @@
   for (unsigned i=0, N = MI.getNumImplicitRefs(); i != N; ++i) {
     const MachineOperand& mop = MI.getImplicitOp(i);
     if (mop.hasAllocatedReg()) {
-      int regNum = mop.getAllocatedRegNum();
+      unsigned regNum = mop.getReg();
       if (regNum != target.getRegInfo().getZeroRegNum())
-        regToRefVecMap[mop.getAllocatedRegNum()]
+        regToRefVecMap[mop.getReg()]
           .push_back(std::make_pair(node, i + MI.getNumOperands()));
       continue;                     // nothing more to do
     }





More information about the llvm-commits mailing list