[llvm-commits] [llvm] r96815 - /llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h

Chris Lattner sabre at nondot.org
Mon Feb 22 14:37:11 PST 2010


Author: lattner
Date: Mon Feb 22 16:37:11 2010
New Revision: 96815

URL: http://llvm.org/viewvc/llvm-project?rev=96815&view=rev
Log:
expand my hack to work with nodes that have flags but no chains and the 
isel doesn't know the correct # results.  This fixes 8 codegen tests,
down to 22 failures.

Modified:
    llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h

Modified: llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h?rev=96815&r1=96814&r2=96815&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DAGISelHeader.h Mon Feb 22 16:37:11 2010
@@ -758,7 +758,8 @@
         // 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 ||





More information about the llvm-commits mailing list