mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Keep global nodes in each DS Graph (by forcing them to be marked live).
llvm-svn: 4831
This commit is contained in:
parent
3ba057b8c4
commit
7bbda247e2
@ -997,10 +997,10 @@ void DSGraph::removeDeadNodes() {
|
||||
// Mark all nodes reachable by (non-global) scalar nodes as alive...
|
||||
for (std::map<Value*, DSNodeHandle>::iterator I = ScalarMap.begin(),
|
||||
E = ScalarMap.end(); I != E; ++I)
|
||||
if (!isa<GlobalValue>(I->first)) // Don't mark globals!
|
||||
// if (!isa<GlobalValue>(I->first)) // Don't mark globals!
|
||||
markAlive(I->second.getNode(), Alive);
|
||||
else // Keep track of global nodes
|
||||
GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode()));
|
||||
// else // Keep track of global nodes
|
||||
// GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode()));
|
||||
|
||||
// The return value is alive as well...
|
||||
markAlive(RetNode.getNode(), Alive);
|
||||
|
Loading…
Reference in New Issue
Block a user