expand my hack to work with nodes that have flags but no chains and the
authorChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 22:37:11 +0000 (22:37 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Feb 2010 22:37:11 +0000 (22:37 +0000)
isel doesn't know the correct # results.  This fixes 8 codegen tests,
down to 22 failures.

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

include/llvm/CodeGen/DAGISelHeader.h

index d60940ff1f88869296014665336c4b5f906ffa15..0ebb9f10f6dd275c23757b11e762ae2178d57a8e 100644 (file)
@@ -758,7 +758,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
         // allow us to stop encoding #results in OPC_CompleteMatch's table
         // entry.
         if (NodeToMatch->getNumValues() <= i ||
-            NodeToMatch->getValueType(i) == MVT::Other)
+            NodeToMatch->getValueType(i) == MVT::Other ||
+            NodeToMatch->getValueType(i) == MVT::Flag)
           break;
         assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
                 NodeToMatch->getValueType(i) == MVT::iPTR ||