remove dead code. This is never generated for any targets in mainline.
authorChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 06:14:22 +0000 (06:14 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 06:14:22 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96332 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index 243700fdb71fc647f14e1616522e93339fb90a24..8b7b74c7ad7d5956b66c1326ced2809833829dfa 100644 (file)
@@ -624,21 +624,6 @@ void PatternCodeEmitter::EmitMatchCode(TreePatternNode *N, TreePatternNode *P,
     }
   }
   
-  // Don't fold any node which reads or writes a flag and has multiple uses.
-  // FIXME: We really need to separate the concepts of flag and "glue". Those
-  // real flag results, e.g. X86CMP output, can have multiple uses.
-  // FIXME: If the optional incoming flag does not exist. Then it is ok to
-  // fold it.
-  if (!isRoot &&
-      (N->TreeHasProperty(SDNPInFlag, CGP) ||
-       N->TreeHasProperty(SDNPOptInFlag, CGP) ||
-       N->TreeHasProperty(SDNPOutFlag, CGP))) {
-        if (!EmittedUseCheck) {
-          // Multiple uses of actual result?
-          emitCheck(getValueName(RootName) + ".hasOneUse()");
-        }
-      }
-  
   // If there are node predicates for this, emit the calls.
   for (unsigned i = 0, e = N->getPredicateFns().size(); i != e; ++i)
     emitCheck(N->getPredicateFns()[i] + "(" + getNodeName(RootName) + ")");