diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-28 18:41:23 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-10-28 18:41:23 +0000 |
commit | 851a994a42a24331bc8ae628c232cba730ccb200 (patch) | |
tree | 7558ec331bacb64f6995920cc085bcd8396ad203 | |
parent | 505607e4c6d9cbe511828340757292fd234aa01a (diff) | |
download | bcm5719-llvm-851a994a42a24331bc8ae628c232cba730ccb200.tar.gz bcm5719-llvm-851a994a42a24331bc8ae628c232cba730ccb200.zip |
Reduce malloc thrashing.
llvm-svn: 117572
-rw-r--r-- | llvm/lib/Target/TargetRegisterInfo.cpp | 2 |
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; } |