enhance my hack for flags handling, this allows us to pass
authorChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 00:47:38 +0000 (00:47 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 00:47:38 +0000 (00:47 +0000)
CodeGen/X86/pr2182.ll.  Down to 13 x86 failures out of ~1100

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96770 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/DAGISelHeader.h

index 3a6fee95775f7cac1e83f88f4d4efa8aaadd92e6..d800281bd5926674b7bc032624acf1092239582f 100644 (file)
@@ -740,7 +740,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
         // after (parallel) on input patterns are removed.  This would also
         // allow us to stop encoding #results in OPC_CompleteMatch's table
         // entry.
-        if (NodeToMatch->getNumValues() <= i)
+        if (NodeToMatch->getNumValues() <= i ||
+            NodeToMatch->getValueType(i) == MVT::Other)
           break;
         assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
                 NodeToMatch->getValueType(i) == MVT::iPTR ||