[llvm-commits] [llvm] r97317 - /llvm/trunk/utils/TableGen/DAGISelMatcher.cpp

Chris Lattner sabre at nondot.org
Sat Feb 27 00:19:48 PST 2010


Author: lattner
Date: Sat Feb 27 02:19:47 2010
New Revision: 97317

URL: http://llvm.org/viewvc/llvm-project?rev=97317&view=rev
Log:
add another case from the ppc backend.  This is obviously a huge and
dissatisfying hack.  TODO: Improve it. :)

Modified:
    llvm/trunk/utils/TableGen/DAGISelMatcher.cpp

Modified: llvm/trunk/utils/TableGen/DAGISelMatcher.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelMatcher.cpp?rev=97317&r1=97316&r2=97317&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelMatcher.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelMatcher.cpp Sat Feb 27 02:19:47 2010
@@ -271,7 +271,10 @@
   // This is a special common case we see a lot in the X86 backend, we know that
   // ISD::STORE nodes can't have non-void type.
   if (const CheckTypeMatcher *CT = dyn_cast<CheckTypeMatcher>(M))
-    return getOpcodeName() == "ISD::STORE" && CT->getType() != MVT::isVoid;
+    // FIXME: This sucks, get void nodes from type constraints.
+    return (getOpcodeName() == "ISD::STORE" ||
+            getOpcodeName() == "ISD::INTRINSIC_VOID") &&
+           CT->getType() != MVT::isVoid;
   
   return false;
 }





More information about the llvm-commits mailing list