summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-10-28 18:41:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-10-28 18:41:23 +0000
commit851a994a42a24331bc8ae628c232cba730ccb200 (patch)
tree7558ec331bacb64f6995920cc085bcd8396ad203 /llvm/lib
parent505607e4c6d9cbe511828340757292fd234aa01a (diff)
downloadbcm5719-llvm-851a994a42a24331bc8ae628c232cba730ccb200.tar.gz
bcm5719-llvm-851a994a42a24331bc8ae628c232cba730ccb200.zip
Reduce malloc thrashing.
llvm-svn: 117572
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetRegisterInfo.cpp b/llvm/lib/Target/TargetRegisterInfo.cpp
index 55f222c7c1c..f2434a62248 100644
--- a/llvm/lib/Target/TargetRegisterInfo.cpp
+++ b/llvm/lib/Target/TargetRegisterInfo.cpp
@@ -82,7 +82,7 @@ BitVector TargetRegisterInfo::getAllocatableSet(const MachineFunction &MF,
// Mask out the reserved registers
BitVector Reserved = getReservedRegs(MF);
- Allocatable ^= Reserved & Allocatable;
+ Allocatable &= Reserved.flip();
return Allocatable;
}
OpenPOWER on IntegriCloud