[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h
Evan Cheng
evan.cheng at apple.com
Wed Feb 14 21:57:31 PST 2007
Changes in directory llvm/include/llvm/Target:
MRegisterInfo.h updated: 1.90 -> 1.91
---
Log message:
Use BitVector instead of vector<bool> which can be extremely slow.
---
Diffs of the changes: (+2 -1)
MRegisterInfo.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.90 llvm/include/llvm/Target/MRegisterInfo.h:1.91
--- llvm/include/llvm/Target/MRegisterInfo.h:1.90 Wed Jan 31 23:32:05 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h Wed Feb 14 23:57:14 2007
@@ -30,6 +30,7 @@
class MachineMove;
class TargetRegisterClass;
class CalleeSavedInfo;
+class BitVector;
/// TargetRegisterDesc - This record contains all of the information known about
/// a particular register. The AliasSet field (if not null) contains a pointer
@@ -240,7 +241,7 @@
/// getAllocatableSet - Returns a bitset indexed by register number
/// indicating if a register is allocatable or not.
- std::vector<bool> getAllocatableSet(MachineFunction &MF) const;
+ BitVector getAllocatableSet(MachineFunction &MF) const;
const TargetRegisterDesc &operator[](unsigned RegNo) const {
assert(RegNo < NumRegs &&
More information about the llvm-commits
mailing list