[llvm-commits] CVS: llvm/lib/Target/X86/FloatingPoint.cpp X86InstrInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 10 14:32:01 PST 2004
Changes in directory llvm/lib/Target/X86:
FloatingPoint.cpp updated: 1.19 -> 1.20
X86InstrInfo.cpp updated: 1.20 -> 1.21
---
Log message:
Don't use MachineOperator::is(Phys|Virt)Register
---
Diffs of the changes: (+3 -3)
Index: llvm/lib/Target/X86/FloatingPoint.cpp
diff -u llvm/lib/Target/X86/FloatingPoint.cpp:1.19 llvm/lib/Target/X86/FloatingPoint.cpp:1.20
--- llvm/lib/Target/X86/FloatingPoint.cpp:1.19 Tue Feb 3 01:27:34 2004
+++ llvm/lib/Target/X86/FloatingPoint.cpp Tue Feb 10 14:31:28 2004
@@ -357,7 +357,7 @@
}
static unsigned getFPReg(const MachineOperand &MO) {
- assert(MO.isPhysicalRegister() && "Expected an FP register!");
+ assert(MO.isRegister() && "Expected an FP register!");
unsigned Reg = MO.getReg();
assert(Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!");
return Reg - X86::FP0;
Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.20 llvm/lib/Target/X86/X86InstrInfo.cpp:1.21
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.20 Tue Feb 10 14:25:13 2004
+++ llvm/lib/Target/X86/X86InstrInfo.cpp Tue Feb 10 14:31:28 2004
@@ -42,8 +42,8 @@
// Make sure the instruction is EXACTLY `xchg ax, ax'
if (MI.getOpcode() == X86::XCHGrr16) {
const MachineOperand &op0 = MI.getOperand(0), &op1 = MI.getOperand(1);
- if (op0.isPhysicalRegister() && op0.getReg() == X86::AX &&
- op1.isPhysicalRegister() && op1.getReg() == X86::AX) {
+ if (op0.isRegister() && op0.getReg() == X86::AX &&
+ op1.isRegister() && op1.getReg() == X86::AX) {
return true;
}
}
More information about the llvm-commits
mailing list