From 413b7bde7c55ad09cf7fc708c101466c18b1eb24 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 20 Sep 2003 23:27:05 +0000 Subject: The Globals graph must become complete at the end of the BU phase! llvm-svn: 8638 --- llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Analysis/DataStructure') 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; } -- cgit v1.2.3