From 3799efab8c028c8928bf55ddd7d39da0e6b62cea Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 28 Oct 2011 01:41:21 +0000 Subject: [PATCH] Delete #if 0 code accidentally left in. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143179 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 263333de4cc..74256691922 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -185,23 +185,6 @@ SelectionDAGLegalize::SelectionDAGLegalize(SelectionDAG &dag) void SelectionDAGLegalize::LegalizeDAG() { DAG.AssignTopologicalOrder(); -#if 0 - SDValue LastChain = DAG.getEntryNode(); - for (SelectionDAG::allnodes_iterator I = DAG.allnodes_begin(), - E = DAG.allnodes_end(); I != E; ++I) { - SDNode *N = I; - if (N->getOpcode() == ISD::CALLSEQ_START) { - SmallVector Ops(N->op_begin(), N->op_end()); - Ops[0] = LastChain; - SDNode *New = DAG.UpdateNodeOperands(N, Ops.data(), Ops.size()); - assert(New == N && "CALLSEQ_START got CSE'd!"); - } - for (unsigned i = 0, e = N->getNumValues(); i != e; ++i) - if (N->getValueType(i) == MVT::Other) - LastChain = SDValue(N, i); - } -#endif - // Visit all the nodes. We start in topological order, so that we see // nodes with their original operands intact. Legalization can produce // new nodes which may themselves need to be legalized. Iterate until all -- 2.11.0