mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 04:24:23 +00:00
Zap the last reference to allocation_order_begin().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aad458d57f
commit
8936b94776
@ -79,9 +79,9 @@ TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, EVT VT) const {
|
|||||||
/// registers for the specific register class.
|
/// registers for the specific register class.
|
||||||
static void getAllocatableSetForRC(const MachineFunction &MF,
|
static void getAllocatableSetForRC(const MachineFunction &MF,
|
||||||
const TargetRegisterClass *RC, BitVector &R){
|
const TargetRegisterClass *RC, BitVector &R){
|
||||||
for (TargetRegisterClass::iterator I = RC->allocation_order_begin(MF),
|
ArrayRef<unsigned> Order = RC->getRawAllocationOrder(MF);
|
||||||
E = RC->allocation_order_end(MF); I != E; ++I)
|
for (unsigned i = 0; i != Order.size(); ++i)
|
||||||
R.set(*I);
|
R.set(Order[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
BitVector TargetRegisterInfo::getAllocatableSet(const MachineFunction &MF,
|
BitVector TargetRegisterInfo::getAllocatableSet(const MachineFunction &MF,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user