diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-23 23:41:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-23 23:41:14 +0000 |
commit | d1775798607f12b31dc2fc186312673ff417eadd (patch) | |
tree | 710c3747d22e4bb2814f7e9e4899ce697033899d /lib/Target/X86/X86FloatingPoint.cpp | |
parent | e0cbf970ac5e9636a3a635e1f3390aa5d93c827a (diff) |
Adjust to new livevars interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r-- | lib/Target/X86/X86FloatingPoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp index 4b2663e3ff..58568c31c5 100644 --- a/lib/Target/X86/X86FloatingPoint.cpp +++ b/lib/Target/X86/X86FloatingPoint.cpp @@ -212,8 +212,8 @@ bool FPS::processBasicBlock(MachineFunction &MF, MachineBasicBlock &BB) { // Get dead variables list now because the MI pointer may be deleted as part // of processing! - LiveVariables::killed_iterator IB = LV->dead_begin(MI); - LiveVariables::killed_iterator IE = LV->dead_end(MI); + LiveVariables::killed_iterator IB, IE; + tie(IB, IE) = LV->dead_range(MI); DEBUG( const MRegisterInfo *MRI = MF.getTarget().getRegisterInfo(); @@ -222,7 +222,7 @@ bool FPS::processBasicBlock(MachineFunction &MF, MachineBasicBlock &BB) { if (I != E) { std::cerr << "Killed Operands:"; for (; I != E; ++I) - std::cerr << " %" << MRI->getName(I->second); + std::cerr << " %" << MRI->getName(*I); std::cerr << "\n"; } ); @@ -241,7 +241,7 @@ bool FPS::processBasicBlock(MachineFunction &MF, MachineBasicBlock &BB) { // Check to see if any of the values defined by this instruction are dead // after definition. If so, pop them. for (; IB != IE; ++IB) { - unsigned Reg = IB->second; + unsigned Reg = *IB; if (Reg >= X86::FP0 && Reg <= X86::FP6) { DEBUG(std::cerr << "Register FP#" << Reg-X86::FP0 << " is dead!\n"); freeStackSlotAfter(I, Reg-X86::FP0); |