diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-02 00:40:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-02 00:40:26 +0000 |
commit | 7894ab3a995ef678494cd74d925cbb2cc48e724e (patch) | |
tree | fdef513755dc1ccb3b21c702f5575e138de0aba8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 53db22c7aad6259efd339e65d92fff3f66cb3496 (diff) | |
download | bcm5719-llvm-7894ab3a995ef678494cd74d925cbb2cc48e724e.tar.gz bcm5719-llvm-7894ab3a995ef678494cd74d925cbb2cc48e724e.zip |
remove dead code.
llvm-svn: 97529
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 7fd275672a3..cb16d7a1f27 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1496,37 +1496,6 @@ GetVBR(uint64_t Val, const unsigned char *MatcherTable, unsigned &Idx) { return Val; } -/// ISelUpdater - helper class to handle updates of the -/// instruciton selection graph. -namespace { -class ISelUpdater : public SelectionDAG::DAGUpdateListener { - SelectionDAG::allnodes_iterator &ISelPosition; -public: - explicit ISelUpdater(SelectionDAG::allnodes_iterator &isp) - : ISelPosition(isp) {} - - /// NodeDeleted - Handle nodes deleted from the graph. If the - /// node being deleted is the current ISelPosition node, update - /// ISelPosition. - /// - virtual void NodeDeleted(SDNode *N, SDNode *E) { - if (ISelPosition == SelectionDAG::allnodes_iterator(N)) - ++ISelPosition; - } - - /// NodeUpdated - Ignore updates for now. - virtual void NodeUpdated(SDNode *N) {} -}; -} - -#if 0 -/// ReplaceUses - replace all uses of the old node F with the use -/// of the new node T. -static void ReplaceUses(SDValue F, SDValue T) { - ISelUpdater ISU(ISelPosition); - CurDAG->ReplaceAllUsesOfValueWith(F, T, &ISU); -} -#endif /// UpdateChainsAndFlags - When a match is complete, this method updates uses of /// interior flag and chain results to use the new flag and chain results. |