[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Dec 2 21:13:30 PST 2004
Changes in directory llvm/lib/Target/X86:
X86ISelSimple.cpp updated: 1.299 -> 1.300
---
Log message:
Fix a regression caused by the previous patch
---
Diffs of the changes: (+4 -2)
Index: llvm/lib/Target/X86/X86ISelSimple.cpp
diff -u llvm/lib/Target/X86/X86ISelSimple.cpp:1.299 llvm/lib/Target/X86/X86ISelSimple.cpp:1.300
--- llvm/lib/Target/X86/X86ISelSimple.cpp:1.299 Thu Dec 2 11:57:21 2004
+++ llvm/lib/Target/X86/X86ISelSimple.cpp Thu Dec 2 23:13:15 2004
@@ -802,9 +802,11 @@
MachineOperand& MO = I->getOperand(i);
if (MO.isRegister() && MO.getReg()) {
unsigned Reg = MO.getReg();
- if (MRegisterInfo::isVirtualRegister(Reg))
- if (RegMap.getRegClass(Reg)->getSize() == 10)
+ if (MRegisterInfo::isVirtualRegister(Reg)) {
+ unsigned RegSize = RegMap.getRegClass(Reg)->getSize();
+ if (RegSize == 10 || RegSize == 8)
goto UsesFPReg;
+ }
}
}
// If we haven't found an FP register use or def in this basic block, check
More information about the llvm-commits
mailing list