summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CriticalAntiDepBreaker.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-07-15 19:58:14 +0000
committerBill Wendling <isanbard@gmail.com>2010-07-15 19:58:14 +0000
commit9c2a034730b289a2cf48bc91aa2ef69737a7afbb (patch)
treeab70f392966fb82b55273338db4f59ea85ec02e4 /lib/CodeGen/CriticalAntiDepBreaker.h
parente4a4147c877777fddfff50a89cac81a596f1a8ba (diff)
downloadllvm-9c2a034730b289a2cf48bc91aa2ef69737a7afbb.tar.gz
llvm-9c2a034730b289a2cf48bc91aa2ef69737a7afbb.tar.bz2
llvm-9c2a034730b289a2cf48bc91aa2ef69737a7afbb.tar.xz
Use std::vector instead of TargetRegisterInfo::FirstVirtualRegister. This time
make sure to allocate enough space in the std::vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CriticalAntiDepBreaker.h')
-rw-r--r--lib/CodeGen/CriticalAntiDepBreaker.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/CriticalAntiDepBreaker.h b/lib/CodeGen/CriticalAntiDepBreaker.h
index 540630083b..0ed7c35b0f 100644
--- a/lib/CodeGen/CriticalAntiDepBreaker.h
+++ b/lib/CodeGen/CriticalAntiDepBreaker.h
@@ -46,19 +46,18 @@ class TargetRegisterInfo;
/// corresponding value is null. If the register is live but used in
/// multiple register classes, the corresponding value is -1 casted to a
/// pointer.
- const TargetRegisterClass *
- Classes[TargetRegisterInfo::FirstVirtualRegister];
+ std::vector<const TargetRegisterClass*> Classes;
/// RegRegs - Map registers to all their references within a live range.
std::multimap<unsigned, MachineOperand *> RegRefs;
/// 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;
/// DefIndices - The index of the most recent complete def (proceding bottom
/// up), or ~0u if the register is live.
- unsigned DefIndices[TargetRegisterInfo::FirstVirtualRegister];
+ std::vector<unsigned> DefIndices;
/// KeepRegs - A set of registers which are live and cannot be changed to
/// break anti-dependencies.