summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-22 22:10:22 +0000
committerChris Lattner <sabre@nondot.org>2005-03-22 22:10:22 +0000
commitca174306f04303414c7de49fdf7a8e283e3feac2 (patch)
tree2660b5b184299cd3dcd1119a915b2b27ccf38c92 /llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
parent537dcf017c0f8dd29e1b591c77a709062466deaa (diff)
downloadbcm5719-llvm-ca174306f04303414c7de49fdf7a8e283e3feac2.tar.gz
bcm5719-llvm-ca174306f04303414c7de49fdf7a8e283e3feac2.zip
Mark external globals incomplete in the BU Globals graph, fixing
Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll llvm-svn: 20773
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
index 0a9994c4116..47ffc87cc7d 100644
--- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
+++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -82,6 +82,9 @@ bool BUDataStructures::runOnModule(Module &M) {
GlobalsGraph->removeTriviallyDeadNodes();
GlobalsGraph->maskIncompleteMarkers();
+ // Mark external globals incomplete.
+ GlobalsGraph->markIncompleteNodes(DSGraph::IgnoreGlobals);
+
// Merge the globals variables (not the calls) from the globals graph back
// into the main function's graph so that the main function contains all of
// the information about global pools and GV usage in the program.
OpenPOWER on IntegriCloud