summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-11 23:11:51 +0000
committerChris Lattner <sabre@nondot.org>2003-02-11 23:11:51 +0000
commit7127d7db7a5932553fce5e8c7917be1ba548ba2a (patch)
tree69141ce09be2ec3461bd90433c1d221cf56e9aa9 /llvm/lib/Analysis/DataStructure/Local.cpp
parent763502671dda12adb4ef204ba6c92613176006ad (diff)
downloadbcm5719-llvm-7127d7db7a5932553fce5e8c7917be1ba548ba2a.tar.gz
bcm5719-llvm-7127d7db7a5932553fce5e8c7917be1ba548ba2a.zip
Implement a "union-findy" version of DS-Analysis, which eliminates the
Referrers list on DSNodes. llvm-svn: 5536
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index b54827699ed..32d7aea42fa 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/lib/Analysis/DataStructure/Local.cpp
@@ -109,8 +109,7 @@ namespace {
/// the graph.
///
DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) {
- DSNode *N = new DSNode(NodeType, Ty); // Create the node
- Nodes.push_back(N); // Add node to nodes list
+ DSNode *N = new DSNode(NodeType, Ty, &G); // Create the node
if (DisableFieldSensitivity)
N->foldNodeCompletely();
return N;
OpenPOWER on IntegriCloud