[llvm-commits] [llvm] r133310 - /llvm/trunk/lib/Target/TargetRegisterInfo.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jun 17 16:17:14 PDT 2011
Author: stoklund
Date: Fri Jun 17 18:17:13 2011
New Revision: 133310
URL: http://llvm.org/viewvc/llvm-project?rev=133310&view=rev
Log:
Zap the last reference to allocation_order_begin().
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=133310&r1=133309&r2=133310&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetRegisterInfo.cpp Fri Jun 17 18:17:13 2011
@@ -79,9 +79,9 @@
/// registers for the specific register class.
static void getAllocatableSetForRC(const MachineFunction &MF,
const TargetRegisterClass *RC, BitVector &R){
- for (TargetRegisterClass::iterator I = RC->allocation_order_begin(MF),
- E = RC->allocation_order_end(MF); I != E; ++I)
- R.set(*I);
+ ArrayRef<unsigned> Order = RC->getRawAllocationOrder(MF);
+ for (unsigned i = 0; i != Order.size(); ++i)
+ R.set(Order[i]);
}
BitVector TargetRegisterInfo::getAllocatableSet(const MachineFunction &MF,
More information about the llvm-commits
mailing list