mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
* Make the DSGraph cloner automatically merge global nodes
* BUClosure doesn't have to worry about global nodes * TDClosure now works with global nodes * Reenable DNE on TD pass, now that globals work right git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -165,13 +165,6 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
|
||||
}
|
||||
|
||||
ResolveCallSite(*Graph, CallSite);
|
||||
|
||||
#if 0
|
||||
// If its not a self-recursive call, merge global nodes in the inlined
|
||||
// graph with the corresponding global nodes in the current graph
|
||||
if (&caller != &callee)
|
||||
MergeGlobalNodes(calleeGraph, OldValMap);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,9 +173,7 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) {
|
||||
Graph->maskIncompleteMarkers();
|
||||
Graph->markIncompleteNodes(/*markFormals*/ !F.hasInternalLinkage()
|
||||
/*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/);
|
||||
#if 0
|
||||
Graph->removeDeadNodes(/*KeepAllGlobals*/ false, /*KeepCalls*/ false);
|
||||
#endif
|
||||
|
||||
DEBUG(std::cerr << " [TD] Done inlining callers for: " << F.getName() << " ["
|
||||
<< Graph->getGraphSize() << "+" << Graph->getFunctionCalls().size()
|
||||
|
||||
Reference in New Issue
Block a user