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 | ca84121596640c99887f909f3b9a3ae830391e64 (patch) | |
tree | e6da807bfcff72e9deb0cafb44e6963469238c15 /lib | |
parent | 815ffa24c498de777e699b5cd17236fa4e1a735e (diff) | |
download | external_llvm-ca84121596640c99887f909f3b9a3ae830391e64.zip external_llvm-ca84121596640c99887f909f3b9a3ae830391e64.tar.gz external_llvm-ca84121596640c99887f909f3b9a3ae830391e64.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 00fc3aa..74d6a2a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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 |