diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-21 16:24:54 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-21 16:24:54 +0000 |
commit | 75ea0b83c5cbb5771846d03ef37e1f4acf0c76c2 (patch) | |
tree | a0582691e9ddf022796358a934058745a9f1f951 /llvm | |
parent | 8f61db6f46bd1ec8852a0fa9199b32d284cbbbc8 (diff) | |
download | bcm5719-llvm-75ea0b83c5cbb5771846d03ef37e1f4acf0c76c2.tar.gz bcm5719-llvm-75ea0b83c5cbb5771846d03ef37e1f4acf0c76c2.zip |
Elements in DeadNodeSet are checked for use_empty() before they
are actually deleted, so it's not necessary to remove re-used
nodes from the set.
llvm-svn: 55123
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 00fc3aa7dae..74d6a2a8705 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3998,7 +3998,6 @@ SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc, N->OperandList[i].setUser(N); SDNode *ToUse = N->OperandList[i].getVal(); ToUse->addUser(i, N); - DeadNodeSet.erase(ToUse); } // Delete any nodes that are still dead after adding the uses for the |