summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-28 18:38:38 +0000
committerChris Lattner <sabre@nondot.org>2002-03-28 18:38:38 +0000
commit8a5c470c594f882d7d8248c1e73a55c01f8dcea5 (patch)
tree4ee2ff4fe6d482de033e0e585957b08b853a8f67 /llvm/lib/Analysis/DataStructure
parent674ff853b9297abdb34ad1cc74e323079e5259c0 (diff)
downloadbcm5719-llvm-8a5c470c594f882d7d8248c1e73a55c01f8dcea5.tar.gz
bcm5719-llvm-8a5c470c594f882d7d8248c1e73a55c01f8dcea5.zip
Ooops, I did such a great job pruning nodes, that I accidentally deleted
ALL allocation nodes... hrm... bad. llvm-svn: 2018
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r--llvm/lib/Analysis/DataStructure/EliminateNodes.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/EliminateNodes.cpp b/llvm/lib/Analysis/DataStructure/EliminateNodes.cpp
index ca82ed1cd92..39fdd2c5b29 100644
--- a/llvm/lib/Analysis/DataStructure/EliminateNodes.cpp
+++ b/llvm/lib/Analysis/DataStructure/EliminateNodes.cpp
@@ -152,7 +152,7 @@ static inline void MarkReferredNodeSetReachable(const PointerValSet &PVS,
vector<AllocDSNode*> &AllocNodes,
vector<bool> &ReachableAllocNodes) {
for (unsigned i = 0, e = PVS.size(); i != e; ++i)
- if (isa<ShadowDSNode>(PVS[i].Node) || isa<ShadowDSNode>(PVS[i].Node))
+ if (isa<ShadowDSNode>(PVS[i].Node) || isa<AllocDSNode>(PVS[i].Node))
MarkReferredNodesReachable(PVS[i].Node, ShadowNodes, ReachableShadowNodes,
AllocNodes, ReachableAllocNodes);
}
@@ -194,6 +194,7 @@ static void MarkReferredNodesReachable(DSNode *N,
bool FunctionDSGraph::RemoveUnreachableShadowNodes() {
bool Changed = false;
+
while (1) {
// Reachable*Nodes - Contains true if there is an edge from a reachable
// node to the numbered node...
OpenPOWER on IntegriCloud