diff options
author | Owen Anderson <resistor@mac.com> | 2008-01-07 01:35:56 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-01-07 01:35:56 +0000 |
commit | 6425f8be7263e625c2d7484eb2fb8f6643824f49 (patch) | |
tree | 39fc549cc179067501294dc83649ac50f4c74044 /lib/CodeGen/RegAllocLocal.cpp | |
parent | 43dbe05279b753aabda571d9c83eaeb36987001a (diff) |
Update CodeGen for MRegisterInfo --> TargetInstrInfo changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLocal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index 251d175ea6..3821972555 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -50,6 +50,7 @@ namespace { const TargetMachine *TM; MachineFunction *MF; const MRegisterInfo *MRI; + const TargetInstrInfo *TII; LiveVariables *LV; // StackSlotForVirtReg - Maps virtual regs to the frame index where these @@ -478,7 +479,7 @@ MachineInstr *RALocal::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI, // If we can fold this spill into this instruction, do so now. SmallVector<unsigned, 2> Ops; Ops.push_back(OpNum); - if (MachineInstr* FMI = MRI->foldMemoryOperand(MI, Ops, FrameIndex)) { + if (MachineInstr* FMI = TII->foldMemoryOperand(MI, Ops, FrameIndex)) { ++NumFolded; // Since we changed the address of MI, make sure to update live variables // to know that the new instruction has the properties of the old one. @@ -801,6 +802,7 @@ bool RALocal::runOnMachineFunction(MachineFunction &Fn) { MF = &Fn; TM = &Fn.getTarget(); MRI = TM->getRegisterInfo(); + TII = TM->getInstrInfo(); LV = &getAnalysis<LiveVariables>(); PhysRegsUsed.assign(MRI->getNumRegs(), -1); |