projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
815ffa2
)
Elements in DeadNodeSet are checked for use_empty() before they
author
Dan Gohman
<gohman@apple.com>
Thu, 21 Aug 2008 16:24:54 +0000
(16:24 +0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 21 Aug 2008 16:24:54 +0000
(16:24 +0000)
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
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 00fc3aa7dae8a0a1e359ee6baa7e2f7805173a77..74d6a2a870540e95add65dd45a1bc13f99ad0abd 100644
(file)
--- 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