summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-10-28 01:41:21 +0000
committerDan Gohman <gohman@apple.com>2011-10-28 01:41:21 +0000
commit0e8d1454b15920cfa4fc6ec69da6ada789ad633a (patch)
treeb66c7698e1e04811c100ad1eba3f0cda230ad0ff /llvm/lib/CodeGen
parent4db3f7dd83f9ce90ef0b02dcf44c3060bbc0622b (diff)
downloadbcm5719-llvm-0e8d1454b15920cfa4fc6ec69da6ada789ad633a.tar.gz
bcm5719-llvm-0e8d1454b15920cfa4fc6ec69da6ada789ad633a.zip
Delete #if 0 code accidentally left in.
llvm-svn: 143179
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 263333de4cc..74256691922 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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<SDValue, 4> 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
OpenPOWER on IntegriCloud