[llvm-commits] CVS: llvm/lib/Target/X86/X86FloatingPoint.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 23 16:41:25 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86FloatingPoint.cpp updated: 1.43 -> 1.44
---
Log message:
Adjust to new livevars interface
---
Diffs of the changes: (+4 -4)
X86FloatingPoint.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/X86/X86FloatingPoint.cpp
diff -u llvm/lib/Target/X86/X86FloatingPoint.cpp:1.43 llvm/lib/Target/X86/X86FloatingPoint.cpp:1.44
--- llvm/lib/Target/X86/X86FloatingPoint.cpp:1.43 Tue Aug 23 17:49:55 2005
+++ llvm/lib/Target/X86/X86FloatingPoint.cpp Tue Aug 23 18:41:14 2005
@@ -212,8 +212,8 @@
// 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 @@
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 @@
// 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);
More information about the llvm-commits
mailing list