[llvm-commits] [llvm] r50260 - /llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp

Evan Cheng evan.cheng at apple.com
Fri Apr 25 01:55:29 PDT 2008


Author: evancheng
Date: Fri Apr 25 03:55:28 2008
New Revision: 50260

URL: http://llvm.org/viewvc/llvm-project?rev=50260&view=rev
Log:
Not checking for intrinsics which do not have a chain operand.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp?rev=50260&r1=50259&r2=50260&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelDAGToDAG.cpp Fri Apr 25 03:55:28 2008
@@ -255,11 +255,12 @@
       continue;
     if (N == Def) {
       if (Use == ImmedUse)
-        continue; // We are not looking for immediate use.
+        continue;  // We are not looking for immediate use.
       if (Use == Root) {
+        // Must be a chain reading node where it is possible to reach its own
+        // chain operand through a path started from another operand.
         assert(Use->getOpcode() == ISD::STORE ||
                Use->getOpcode() == X86ISD::CMP ||
-               Use->getOpcode() == ISD::INTRINSIC_WO_CHAIN ||
                Use->getOpcode() == ISD::INTRINSIC_W_CHAIN ||
                Use->getOpcode() == ISD::INTRINSIC_VOID);
         continue;





More information about the llvm-commits mailing list