remove now dead code and fixme.
authorChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 06:15:00 +0000 (06:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 06:15:00 +0000 (06:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96333 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp
utils/TableGen/DAGISelMatcherGen.cpp

index 8b7b74c7ad7d5956b66c1326ced2809833829dfa..639c148781a9421052008a854cdfde7ffad0dafb 100644 (file)
@@ -561,7 +561,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
   unsigned OpNo = 0;
   bool NodeHasChain = N->NodeHasProperty(SDNPHasChain, CGP);
   bool HasChain     = N->TreeHasProperty(SDNPHasChain, CGP);
-  bool EmittedUseCheck = false;
   if (HasChain) {
     if (NodeHasChain)
       OpNo = 1;
@@ -571,7 +570,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
       std::string ParentName(RootName.begin(), RootName.end()-1);
       emitCheck("IsProfitableToFold(" + getValueName(RootName) +
                 ", " + getNodeName(ParentName) + ", N)");
-      EmittedUseCheck = true;
       if (NodeHasChain) {
         // If the immediate use can somehow reach this node through another
         // path, then can't fold it either or it will create a cycle.
index 3ed076c7c7ec4019b3690c5941dda755df67dc75..07ab4729a6b23818c301338519097a9035c93f87 100644 (file)
@@ -243,8 +243,6 @@ void MatcherGen::EmitOperatorMatchCode(const TreePatternNode *N,
     }
   }
       
-  // FIXME: Handle EmittedUseCheck & Flags & .hasOneUse()
-  
   for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) {
     // Get the code suitable for matching this child.  Move to the child, check
     // it then move back to the parent.