[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Chris Lattner
sabre at nondot.org
Wed Apr 11 15:30:04 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.148 -> 1.149
---
Log message:
Fix CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
---
Diffs of the changes: (+8 -6)
X86ISelDAGToDAG.cpp | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.148 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.149
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.148 Wed Mar 28 13:38:33 2007
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed Apr 11 17:29:46 2007
@@ -491,13 +491,15 @@
do {
for (MachineBasicBlock::iterator I = MBBI->begin(), E = MBBI->end();
!ContainsFPCode && I != E; ++I) {
- for (unsigned op = 0, e = I->getNumOperands(); op != e; ++op) {
- if (I->getOperand(op).isRegister() && I->getOperand(op).isDef() &&
- MRegisterInfo::isVirtualRegister(I->getOperand(op).getReg()) &&
- RegMap->getRegClass(I->getOperand(0).getReg()) ==
+ if (I->getNumOperands() != 0 && I->getOperand(0).isRegister()) {
+ for (unsigned op = 0, e = I->getNumOperands(); op != e; ++op) {
+ if (I->getOperand(op).isRegister() && I->getOperand(op).isDef() &&
+ MRegisterInfo::isVirtualRegister(I->getOperand(op).getReg()) &&
+ RegMap->getRegClass(I->getOperand(0).getReg()) ==
X86::RFPRegisterClass) {
- ContainsFPCode = true;
- break;
+ ContainsFPCode = true;
+ break;
+ }
}
}
}
More information about the llvm-commits
mailing list