summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-02-15 05:59:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-02-15 05:59:24 +0000
commit14edd1989b06ed7cc7f933d691b56e0a67fa76ce (patch)
treec900ea86fb27e3a8ad33c43b74332117ba8c3ea8 /llvm/lib/CodeGen/RegAllocLocal.cpp
parentee7c774b8e0d20d1d2a2846440da4026fa619cf2 (diff)
downloadbcm5719-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/CodeGen/RegAllocLocal.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index 74d76c14fc4..f862023e8f8 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -789,7 +789,7 @@ bool RA::runOnMachineFunction(MachineFunction &Fn) {
// is allocatable. To handle this, we mark all unallocatable registers as
// being pinned down, permanently.
{
- std::vector<bool> Allocable = RegInfo->getAllocatableSet(Fn);
+ BitVector Allocable = RegInfo->getAllocatableSet(Fn);
for (unsigned i = 0, e = Allocable.size(); i != e; ++i)
if (!Allocable[i])
PhysRegsUsed[i] = -2; // Mark the reg unallocable.
OpenPOWER on IntegriCloud