diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-22 22:10:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-22 22:10:22 +0000 |
commit | 9547adef58cedf4a2d1a7ecf0c1792564f14ef9d (patch) | |
tree | 2d3f612ad0569f38983343a0a9ee99a41487c0eb /lib/Analysis/DataStructure/BottomUpClosure.cpp | |
parent | 4c10375785fc03f4fbc4ca41a14a8d864d440fe2 (diff) |
Mark external globals incomplete in the BU Globals graph, fixing
Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 0a9994c411..47ffc87cc7 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/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. |