[llvm-commits] [llvm] r63931 - /llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h
Roman Levenstein
romix.llvm at googlemail.com
Fri Feb 6 01:16:28 PST 2009
Author: romix
Date: Fri Feb 6 03:16:15 2009
New Revision: 63931
URL: http://llvm.org/viewvc/llvm-project?rev=63931&view=rev
Log:
Don't pass BitVectors by value, pass them by reference.
Modified:
llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h
Modified: llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h?rev=63931&r1=63930&r2=63931&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h (original)
+++ llvm/trunk/include/llvm/CodeGen/RegisterScavenging.h Fri Feb 6 03:16:15 2009
@@ -125,7 +125,7 @@
/// setUsed / setUnused - Mark the state of one or a number of registers.
///
void setUsed(unsigned Reg, bool ImpDef = false);
- void setUsed(BitVector Regs, bool ImpDef = false) {
+ void setUsed(BitVector &Regs, bool ImpDef = false) {
RegsAvailable &= ~Regs;
if (ImpDef)
ImplicitDefed |= Regs;
@@ -133,7 +133,7 @@
ImplicitDefed &= ~Regs;
}
void setUnused(unsigned Reg, const MachineInstr *MI);
- void setUnused(BitVector Regs) {
+ void setUnused(BitVector &Regs) {
RegsAvailable |= Regs;
ImplicitDefed &= ~Regs;
}
More information about the llvm-commits
mailing list