mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Make removeTriviallyDeadNodes a private interface of DSGraph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -74,9 +74,6 @@ namespace {
|
||||
getValueDest(*I);
|
||||
|
||||
visit(G.getFunction()); // Single pass over the function
|
||||
|
||||
// Not inlining, only eliminate trivially dead nodes.
|
||||
G.removeTriviallyDeadNodes();
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -135,6 +132,9 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : Func(&F), GlobalsGraph(GG) {
|
||||
// Use the graph builder to construct the local version of the graph
|
||||
GraphBuilder B(*this, Nodes, RetNode, ScalarMap, FunctionCalls);
|
||||
markIncompleteNodes();
|
||||
|
||||
// Remove any nodes made dead due to merging...
|
||||
removeDeadNodes(true, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user