[llvm-commits] [llvm] r108450 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Bill Wendling isanbard at gmail.com
Thu Jul 15 13:01:02 PDT 2010


Author: void
Date: Thu Jul 15 15:01:02 2010
New Revision: 108450

URL: http://llvm.org/viewvc/llvm-project?rev=108450&view=rev
Log:
Use std::vector instead of TargetRegisterInfo::FirstVirtualRegister.

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

Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=108450&r1=108449&r2=108450&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Thu Jul 15 15:01:02 2010
@@ -130,7 +130,7 @@
 
     /// KillIndices - The index of the most recent kill (proceding bottom-up),
     /// or ~0u if the register is not live.
-    unsigned KillIndices[TargetRegisterInfo::FirstVirtualRegister];
+    std::vector<unsigned> KillIndices;
 
   public:
     SchedulePostRATDList(MachineFunction &MF,
@@ -140,7 +140,8 @@
                          AntiDepBreaker *ADB,
                          AliasAnalysis *aa)
       : ScheduleDAGInstrs(MF, MLI, MDT), Topo(SUnits),
-      HazardRec(HR), AntiDepBreak(ADB), AA(aa) {}
+        HazardRec(HR), AntiDepBreak(ADB), AA(aa),
+        KillIndices(TRI->getNumRegs()) {}
 
     ~SchedulePostRATDList() {
     }





More information about the llvm-commits mailing list