Remove dead code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-07-27 19:59:34 +00:00
parent 278a6b5045
commit 3aac4d58e4

View File

@ -3643,35 +3643,6 @@ void DAGISelEmitter::run(std::ostream &OS) {
<< "// should not be folded.\n";
OS << "std::set<SDNode*> InFlightSet;\n";
OS << "\n";
OS << "static void findNonImmUse(SDNode* Use, SDNode* Def, bool &found, "
<< "std::set<SDNode *> &Visited) {\n";
OS << " if (found || !Visited.insert(Use).second) return;\n";
OS << " for (unsigned i = 0, e = Use->getNumOperands(); i != e; ++i) {\n";
OS << " SDNode *N = Use->getOperand(i).Val;\n";
OS << " if (N != Def) {\n";
OS << " findNonImmUse(N, Def, found, Visited);\n";
OS << " } else {\n";
OS << " found = true;\n";
OS << " break;\n";
OS << " }\n";
OS << " }\n";
OS << "}\n";
OS << "\n";
OS << "static bool isNonImmUse(SDNode* Use, SDNode* Def) {\n";
OS << " std::set<SDNode *> Visited;\n";
OS << " bool found = false;\n";
OS << " for (unsigned i = 0, e = Use->getNumOperands(); i != e; ++i) {\n";
OS << " SDNode *N = Use->getOperand(i).Val;\n";
OS << " if (N != Def) {\n";
OS << " findNonImmUse(N, Def, found, Visited);\n";
OS << " if (found) break;\n";
OS << " }\n";
OS << " }\n";
OS << " return found;\n";
OS << "}\n";
OS << "\n";
OS << "// AddHandleReplacement - Note the pending replacement node for a\n"
<< "// handle node in ReplaceMap.\n";