[llvm-commits] [llvm] r112842 - /llvm/trunk/lib/Target/TargetRegisterInfo.cpp
Jim Grosbach
grosbach at apple.com
Thu Sep 2 11:18:52 PDT 2010
Author: grosbach
Date: Thu Sep 2 13:18:52 2010
New Revision: 112842
URL: http://llvm.org/viewvc/llvm-project?rev=112842&view=rev
Log:
handle case where a register class is specified
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=112842&r1=112841&r2=112842&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetRegisterInfo.cpp Thu Sep 2 13:18:52 2010
@@ -74,12 +74,11 @@
BitVector Allocatable(NumRegs);
if (RC) {
getAllocatableSetForRC(MF, RC, Allocatable);
- return Allocatable;
- }
-
- for (TargetRegisterInfo::regclass_iterator I = regclass_begin(),
+ } else {
+ for (TargetRegisterInfo::regclass_iterator I = regclass_begin(),
E = regclass_end(); I != E; ++I)
- getAllocatableSetForRC(MF, *I, Allocatable);
+ getAllocatableSetForRC(MF, *I, Allocatable);
+ }
// Mask out the reserved registers
BitVector Reserved = getReservedRegs(MF);
More information about the llvm-commits
mailing list