[llvm-commits] [llvm] r55123 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Dan Gohman
gohman at apple.com
Thu Aug 21 09:24:58 PDT 2008
Author: djg
Date: Thu Aug 21 11:24:54 2008
New Revision: 55123
URL: http://llvm.org/viewvc/llvm-project?rev=55123&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=55123&r1=55122&r2=55123&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Thu Aug 21 11:24:54 2008
@@ -3998,7 +3998,6 @@
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
More information about the llvm-commits
mailing list