mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 21:47:07 +00:00
Use newly added API in MRegisterInfo and don't expose the allocatable
register set anymore. Its users now use the MRegisterInfo API. llvm-svn: 16061
This commit is contained in:
parent
3bfc6999f2
commit
03913413da
@ -231,10 +231,6 @@ public:
|
||||
/// register.
|
||||
VarInfo &getVarInfo(unsigned RegIdx);
|
||||
|
||||
const std::vector<bool>& getAllocatablePhysicalRegisters() const {
|
||||
return AllocatablePhysicalRegisters;
|
||||
}
|
||||
|
||||
void MarkVirtRegAliveInBlock(VarInfo &VRInfo, MachineBasicBlock *BB);
|
||||
void HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
|
||||
MachineInstr *MI);
|
||||
|
@ -148,19 +148,7 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
|
||||
RegInfo = MF.getTarget().getRegisterInfo();
|
||||
assert(RegInfo && "Target doesn't have register information?");
|
||||
|
||||
// First time though, initialize AllocatablePhysicalRegisters for the target
|
||||
if (AllocatablePhysicalRegisters.empty()) {
|
||||
// Make space, initializing to false...
|
||||
AllocatablePhysicalRegisters.resize(RegInfo->getNumRegs());
|
||||
|
||||
// Loop over all of the register classes...
|
||||
for (MRegisterInfo::regclass_iterator RCI = RegInfo->regclass_begin(),
|
||||
E = RegInfo->regclass_end(); RCI != E; ++RCI)
|
||||
// Loop over all of the allocatable registers in the function...
|
||||
for (TargetRegisterClass::iterator I = (*RCI)->allocation_order_begin(MF),
|
||||
E = (*RCI)->allocation_order_end(MF); I != E; ++I)
|
||||
AllocatablePhysicalRegisters[*I] = true; // The reg is allocatable!
|
||||
}
|
||||
AllocatablePhysicalRegisters = RegInfo->getAllocatableSet(MF);
|
||||
|
||||
// PhysRegInfo - Keep track of which instruction was the last use of a
|
||||
// physical register. This is a purely local property, because all physical
|
||||
|
Loading…
Reference in New Issue
Block a user