Zap the last reference to allocation_order_begin().

llvm-svn: 133310
This commit is contained in:
Jakob Stoklund Olesen 2011-06-17 23:17:13 +00:00
parent d7357a9b8e
commit d3fec5edc1
1 changed files with 3 additions and 3 deletions

View File

@ -79,9 +79,9 @@ TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, EVT VT) const {
/// 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,