mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
make sure to mark nodes in the globals graph incomplete after computing it
so that external globals (and whatever they point to) are marked incomplete. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49e88e80c7
commit
38065a7e01
@ -102,6 +102,7 @@ bool EquivClassGraphs::runOnModule(Module &M) {
|
|||||||
DEBUG(CheckAllGraphs(&M, *this));
|
DEBUG(CheckAllGraphs(&M, *this));
|
||||||
|
|
||||||
getGlobalsGraph().removeTriviallyDeadNodes();
|
getGlobalsGraph().removeTriviallyDeadNodes();
|
||||||
|
getGlobalsGraph().markIncompleteNodes(DSGraph::IgnoreGlobals);
|
||||||
|
|
||||||
// Merge the globals variables (not the calls) from the globals graph back
|
// 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
|
// into the main function's graph so that the main function contains all of
|
||||||
|
Loading…
Reference in New Issue
Block a user