mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
Remove dead code.
llvm-svn: 29359
This commit is contained in:
parent
32c79d77eb
commit
35cdbdb796
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user