mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
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:
parent
278a6b5045
commit
3aac4d58e4
@ -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…
Reference in New Issue
Block a user