summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-20 23:27:05 +0000
committerChris Lattner <sabre@nondot.org>2003-09-20 23:27:05 +0000
commit413b7bde7c55ad09cf7fc708c101466c18b1eb24 (patch)
tree7a74b90cecb7f89e91a87969f4c8219907452881
parent880b9aa10aed27dd0e41ce8476bc7e6ffa25d7b9 (diff)
downloadbcm5719-llvm-413b7bde7c55ad09cf7fc708c101466c18b1eb24.tar.gz
bcm5719-llvm-413b7bde7c55ad09cf7fc708c101466c18b1eb24.zip
The Globals graph must become complete at the end of the BU phase!
llvm-svn: 8638
-rw-r--r--llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
index f5d435fe45d..5019d908450 100644
--- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -48,6 +48,11 @@ bool BUDataStructures::run(Module &M) {
}
NumCallEdges += ActualCallees.size();
+
+ // At the end of the bottom-up pass, the globals graph becomes complete.
+ // FIXME: This is not the right way to do this, but it is sorta better than
+ // nothing!
+ GlobalsGraph->maskIncompleteMarkers();
return false;
}
OpenPOWER on IntegriCloud