diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 05:59:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 05:59:24 +0000 |
commit | 14edd1989b06ed7cc7f933d691b56e0a67fa76ce (patch) | |
tree | c900ea86fb27e3a8ad33c43b74332117ba8c3ea8 /llvm/lib/Target/MRegisterInfo.cpp | |
parent | ee7c774b8e0d20d1d2a2846440da4026fa619cf2 (diff) | |
download | bcm5719-llvm-14edd1989b06ed7cc7f933d691b56e0a67fa76ce.tar.gz bcm5719-llvm-14edd1989b06ed7cc7f933d691b56e0a67fa76ce.zip |
Use BitVector instead of vector<bool> which can be extremely slow.
llvm-svn: 34302
Diffstat (limited to 'llvm/lib/Target/MRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/MRegisterInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/MRegisterInfo.cpp b/llvm/lib/Target/MRegisterInfo.cpp index 01295e802a3..7caaae9d4fa 100644 --- a/llvm/lib/Target/MRegisterInfo.cpp +++ b/llvm/lib/Target/MRegisterInfo.cpp @@ -14,10 +14,10 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Target/MRegisterInfo.h" #include "llvm/Target/TargetFrameInfo.h" - #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineLocation.h" +#include "llvm/ADT/BitVector.h" using namespace llvm; @@ -34,8 +34,8 @@ MRegisterInfo::MRegisterInfo(const TargetRegisterDesc *D, unsigned NR, MRegisterInfo::~MRegisterInfo() {} -std::vector<bool> MRegisterInfo::getAllocatableSet(MachineFunction &MF) const { - std::vector<bool> Allocatable(NumRegs); +BitVector MRegisterInfo::getAllocatableSet(MachineFunction &MF) const { + BitVector Allocatable(NumRegs); for (MRegisterInfo::regclass_iterator I = regclass_begin(), E = regclass_end(); I != E; ++I) { const TargetRegisterClass *RC = *I; |