diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-04 17:45:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-04 17:45:20 +0000 |
commit | 190a418bf6b49a4ef1c1980229a2f0d516e8a2cd (patch) | |
tree | 2147802917bd7685dec7f1d1d2dcdc326483d494 /include | |
parent | 7e5c373d07beec83264944d542dd4717fe01483c (diff) | |
download | external_llvm-190a418bf6b49a4ef1c1980229a2f0d516e8a2cd.zip external_llvm-190a418bf6b49a4ef1c1980229a2f0d516e8a2cd.tar.gz external_llvm-190a418bf6b49a4ef1c1980229a2f0d516e8a2cd.tar.bz2 |
Make SelectionDAG::RemoveDeadNodes iterative instead of recursive, which
also make it simpler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAG.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index b053a3c..f70403c 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -105,10 +105,8 @@ public: void Legalize(); /// RemoveDeadNodes - This method deletes all unreachable nodes in the - /// SelectionDAG, including nodes (like loads) that have uses of their token - /// chain but no other uses and no side effect. If a node is passed in as an - /// argument, it is used as the seed for node deletion. - void RemoveDeadNodes(SDNode *N = 0); + /// SelectionDAG. + void RemoveDeadNodes(); SDOperand getString(const std::string &Val); SDOperand getConstant(uint64_t Val, MVT::ValueType VT); @@ -447,7 +445,6 @@ private: SDNode **FindModifiedNodeSlot(SDNode *N, SDOperand Op1, SDOperand Op2); SDNode **FindModifiedNodeSlot(SDNode *N, const std::vector<SDOperand> &Ops); - void DestroyDeadNode(SDNode *N); void DeleteNodeNotInCSEMaps(SDNode *N); void setNodeValueTypes(SDNode *N, std::vector<MVT::ValueType> &RetVals); void setNodeValueTypes(SDNode *N, MVT::ValueType VT1, MVT::ValueType VT2); |