diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-08 07:25:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-08 07:25:51 +0000 |
commit | b2db87a5ca0f74442f3fe55809a8514438406bb2 (patch) | |
tree | 421a13cb510e97286c495e5c74eaa6bb02ffc3a9 /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 4ba31a2e1ea4eae4a9856091b85e264fd62f7552 (diff) | |
download | bcm5719-llvm-b2db87a5ca0f74442f3fe55809a8514438406bb2.tar.gz bcm5719-llvm-b2db87a5ca0f74442f3fe55809a8514438406bb2.zip |
Disable some code that isn't helping matters
llvm-svn: 14682
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 751d66c8375..4acf46eb554 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp @@ -1589,20 +1589,25 @@ static void removeIdenticalCalls(std::vector<DSCallSite> &Calls) { void DSGraph::removeTriviallyDeadNodes() { TIME_REGION(X, "removeTriviallyDeadNodes"); +#if 0 + /// NOTE: This code is disabled. This slows down DSA on 177.mesa + /// substantially! + // Loop over all of the nodes in the graph, calling getNode on each field. // This will cause all nodes to update their forwarding edges, causing // forwarded nodes to be delete-able. + { TIME_REGION(X, "removeTriviallyDeadNodes:node_iterate"); for (node_iterator NI = node_begin(), E = node_end(); NI != E; ++NI) { DSNode *N = *NI; for (unsigned l = 0, e = N->getNumLinks(); l != e; ++l) N->getLink(l*N->getPointerSize()).getNode(); } + } // NOTE: This code is disabled. Though it should, in theory, allow us to // remove more nodes down below, the scan of the scalar map is incredibly // expensive for certain programs (with large SCCs). In the future, if we can // make the scalar map scan more efficient, then we can reenable this. -#if 0 { TIME_REGION(X, "removeTriviallyDeadNodes:scalarmap"); // Likewise, forward any edges from the scalar nodes. While we are at it, |