[llvm-commits] [llvm] r98872 - /llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp

Chris Lattner sabre at nondot.org
Thu Mar 18 14:15:05 PDT 2010


Author: lattner
Date: Thu Mar 18 16:15:05 2010
New Revision: 98872

URL: http://llvm.org/viewvc/llvm-project?rev=98872&view=rev
Log:
simplify this code, the # of sets in the pattern for an instruction
shouldn't change this.

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

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=98872&r1=98871&r2=98872&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Thu Mar 18 16:15:05 2010
@@ -1145,8 +1145,7 @@
     CodeGenInstruction &InstInfo =
       CDP.getTargetInfo().getInstruction(getOperator()->getName());
     // Apply the result type to the node
-    if (NumResults == 0 ||
-        InstInfo.NumDefs == 0) {
+    if (InstInfo.NumDefs == 0) { // # of elements in (outs) list
       MadeChange = UpdateNodeType(MVT::isVoid, TP);
     } else {
       Record *ResultNode = Inst.getResult(0);





More information about the llvm-commits mailing list