[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 13 12:19:56 PST 2006
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.196 -> 1.197
---
Log message:
Fix a bug in my last X86 checkin, pointed out by cozmic
---
Diffs of the changes: (+2 -1)
X86ISelPattern.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.196 llvm/lib/Target/X86/X86ISelPattern.cpp:1.197
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.196 Fri Jan 13 12:00:54 2006
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Fri Jan 13 14:19:44 2006
@@ -1229,7 +1229,8 @@
cast<RegisterSDNode>(Node->getOperand(1))->getReg() :
cast<RegisterSDNode>(Node)->getReg();
// Just use the specified register as our input if we can.
- if (MRegisterInfo::isVirtualRegister(Reg))
+ if (Node->getOpcode() == ISD::Register ||
+ MRegisterInfo::isVirtualRegister(Reg))
return Reg;
}
More information about the llvm-commits
mailing list