[llvm-commits] [llvm] r143177 - in /llvm/trunk: lib/CodeGen/SelectionDAG/ lib/Target/ARM/ lib/Target/X86/ lib/Target/XCore/ test/CodeGen/CellSPU/ test/CodeGen/Mips/ test/CodeGen/Thumb/ test/CodeGen/X86/
Dan Gohman
gohman at apple.com
Thu Oct 27 18:44:29 PDT 2011
On Oct 27, 2011, at 6:40 PM, Chandler Carruth wrote:
> On Thu, Oct 27, 2011 at 6:29 PM, Dan Gohman <gohman at apple.com> wrote:
>
> +#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
>
> FYI, was leaving this #if 0-ed code intentional?
Nope. Fixed now.
Dan
More information about the llvm-commits
mailing list