diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-07-15 20:01:02 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-07-15 20:01:02 +0000 |
| commit | dd5e9d8fafdb9bc8aa22877ab5156c42d5c39896 (patch) | |
| tree | 3d03a3532fedc6558015cbb926b032b12a87aee4 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
| parent | 51a9c0a1b3762a2ccc0fb66deb5230eae5a3acaa (diff) | |
| download | bcm5719-llvm-dd5e9d8fafdb9bc8aa22877ab5156c42d5c39896.tar.gz bcm5719-llvm-dd5e9d8fafdb9bc8aa22877ab5156c42d5c39896.zip | |
Use std::vector instead of TargetRegisterInfo::FirstVirtualRegister.
llvm-svn: 108450
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index 4af8e07f348..3005ec1075b 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -130,7 +130,7 @@ namespace { /// 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 @@ namespace { 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() { } |

