[llvm-commits] [llvm] r143179 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Dan Gohman
gohman at apple.com
Thu Oct 27 18:41:21 PDT 2011
Author: djg
Date: Thu Oct 27 20:41:21 2011
New Revision: 143179
URL: http://llvm.org/viewvc/llvm-project?rev=143179&view=rev
Log:
Delete #if 0 code accidentally left in.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=143179&r1=143178&r2=143179&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Oct 27 20:41:21 2011
@@ -185,23 +185,6 @@
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
More information about the llvm-commits
mailing list