[llvm-commits] [llvm] r117572 - /llvm/trunk/lib/Target/TargetRegisterInfo.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Oct 28 11:41:23 PDT 2010
Author: d0k
Date: Thu Oct 28 13:41:23 2010
New Revision: 117572
URL: http://llvm.org/viewvc/llvm-project?rev=117572&view=rev
Log:
Reduce malloc thrashing.
Modified:
llvm/trunk/lib/Target/TargetRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/TargetRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetRegisterInfo.cpp?rev=117572&r1=117571&r2=117572&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetRegisterInfo.cpp Thu Oct 28 13:41:23 2010
@@ -82,7 +82,7 @@
// Mask out the reserved registers
BitVector Reserved = getReservedRegs(MF);
- Allocatable ^= Reserved & Allocatable;
+ Allocatable &= Reserved.flip();
return Allocatable;
}
More information about the llvm-commits
mailing list