[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Evan Cheng
evan.cheng at apple.com
Tue Apr 4 23:11:32 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.155 -> 1.156
---
Log message:
Bogus assert
---
Diffs of the changes: (+8 -5)
X86ISelLowering.cpp | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.155 llvm/lib/Target/X86/X86ISelLowering.cpp:1.156
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.155 Wed Apr 5 01:08:13 2006
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed Apr 5 01:11:20 2006
@@ -2842,14 +2842,17 @@
uint64_t &KnownZero,
uint64_t &KnownOne,
unsigned Depth) const {
-
unsigned Opc = Op.getOpcode();
- KnownZero = KnownOne = 0; // Don't know anything.
+ assert((Opc >= ISD::BUILTIN_OP_END ||
+ Opc == ISD::INTRINSIC_WO_CHAIN ||
+ Opc == ISD::INTRINSIC_W_CHAIN ||
+ Opc == ISD::INTRINSIC_VOID) &&
+ "Should use MaskedValueIsZero if you don't know whether Op"
+ " is a target node!");
+ KnownZero = KnownOne = 0; // Don't know anything.
switch (Opc) {
- default:
- assert(Opc >= ISD::BUILTIN_OP_END && "Expected a target specific node");
- break;
+ default: break;
case X86ISD::SETCC:
KnownZero |= (MVT::getIntVTBitMask(Op.getValueType()) ^ 1ULL);
break;
More information about the llvm-commits
mailing list