mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user