summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CriticalAntiDepBreaker.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-07-15 05:56:32 +0000
committerBill Wendling <isanbard@gmail.com>2010-07-15 05:56:32 +0000
commitd5b390189dd3a514c0b01d764a9798cd531d2b59 (patch)
tree773bfddee3e7bf6a9393e9715baaffe3fb5490b9 /llvm/lib/CodeGen/CriticalAntiDepBreaker.h
parentceefcf0143af3167b12cdf1ad807e83dd55e71c8 (diff)
downloadbcm5719-llvm-d5b390189dd3a514c0b01d764a9798cd531d2b59.tar.gz
bcm5719-llvm-d5b390189dd3a514c0b01d764a9798cd531d2b59.zip
Use std::vector instead of a hard-coded array. The length of that array could
get *very* large, but we only need it to be the size of thenumber of pregs. llvm-svn: 108411
Diffstat (limited to 'llvm/lib/CodeGen/CriticalAntiDepBreaker.h')
-rw-r--r--llvm/lib/CodeGen/CriticalAntiDepBreaker.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/CriticalAntiDepBreaker.h b/llvm/lib/CodeGen/CriticalAntiDepBreaker.h
index 540630083bc..62ef72ace11 100644
--- a/llvm/lib/CodeGen/CriticalAntiDepBreaker.h
+++ b/llvm/lib/CodeGen/CriticalAntiDepBreaker.h
@@ -25,6 +25,7 @@
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallSet.h"
#include <map>
+#include <vector>
namespace llvm {
class TargetInstrInfo;
@@ -46,19 +47,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.
OpenPOWER on IntegriCloud