]> granicus.if.org Git - llvm/commitdiff
Remove ancient, commented out code from TableGen, NFC
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 12 Sep 2017 15:47:31 +0000 (15:47 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 12 Sep 2017 15:47:31 +0000 (15:47 +0000)
These pieces were commented out in r98534 and r129691, i.e. 6+ years ago.

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

utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/FastISelEmitter.cpp

index 1a84943d2bff5caf64f8012a8232a02c5570574d..4a312a7cdb7dd030e16c0780b15bc13e7f13e421 100644 (file)
@@ -1976,18 +1976,6 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
   }
 
   bool MadeChange = getChild(0)->ApplyTypeConstraints(TP, NotRegisters);
-
-
-  // If either the output or input of the xform does not have exact
-  // type info. We assume they must be the same. Otherwise, it is perfectly
-  // legal to transform from one type to a completely different type.
-#if 0
-  if (!hasTypeSet() || !getChild(0)->hasTypeSet()) {
-    bool MadeChange = UpdateNodeType(getChild(0)->getExtType(), TP);
-    MadeChange |= getChild(0)->UpdateNodeType(getExtType(), TP);
-    return MadeChange;
-  }
-#endif
   return MadeChange;
 }
 
index 25388b75cc0d18ad0d238fa55d19bdd8d2b3aa94..8e4e9d81415649ef2b71682fe90a798403cd6c80 100644 (file)
@@ -217,10 +217,6 @@ struct OperandsSignature {
           PredNo = ImmediatePredicates.getIDFor(PredFn)+1;
         }
 
-        // Handle unmatched immediate sizes here.
-        //if (Op->getType(0) != VT)
-        //  return false;
-
         Operands.push_back(OpKind::getImm(PredNo));
         continue;
       }