mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Remove dead Nodes list
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8da51bf51
commit
44cfdf9b9a
@ -64,16 +64,14 @@ namespace {
|
|||||||
class GraphBuilder : InstVisitor<GraphBuilder> {
|
class GraphBuilder : InstVisitor<GraphBuilder> {
|
||||||
Function &F;
|
Function &F;
|
||||||
DSGraph &G;
|
DSGraph &G;
|
||||||
std::vector<DSNode*> &Nodes;
|
|
||||||
DSNodeHandle &RetNode; // Node that gets returned...
|
DSNodeHandle &RetNode; // Node that gets returned...
|
||||||
DSGraph::ScalarMapTy &ScalarMap;
|
DSGraph::ScalarMapTy &ScalarMap;
|
||||||
std::vector<DSCallSite> &FunctionCalls;
|
std::vector<DSCallSite> &FunctionCalls;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GraphBuilder(Function &f, DSGraph &g, std::vector<DSNode*> &nodes,
|
GraphBuilder(Function &f, DSGraph &g, DSNodeHandle &retNode,
|
||||||
DSNodeHandle &retNode, DSGraph::ScalarMapTy &SM,
|
DSGraph::ScalarMapTy &SM, std::vector<DSCallSite> &fc)
|
||||||
std::vector<DSCallSite> &fc)
|
: F(f), G(g), RetNode(retNode), ScalarMap(SM),
|
||||||
: F(f), G(g), Nodes(nodes), RetNode(retNode), ScalarMap(SM),
|
|
||||||
FunctionCalls(fc) {
|
FunctionCalls(fc) {
|
||||||
|
|
||||||
// Create scalar nodes for all pointer arguments...
|
// Create scalar nodes for all pointer arguments...
|
||||||
@ -146,7 +144,7 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : GlobalsGraph(GG) {
|
|||||||
DEBUG(std::cerr << " [Loc] Calculating graph for: " << F.getName() << "\n");
|
DEBUG(std::cerr << " [Loc] Calculating graph for: " << F.getName() << "\n");
|
||||||
|
|
||||||
// Use the graph builder to construct the local version of the graph
|
// Use the graph builder to construct the local version of the graph
|
||||||
GraphBuilder B(F, *this, Nodes, ReturnNodes[&F], ScalarMap, FunctionCalls);
|
GraphBuilder B(F, *this, ReturnNodes[&F], ScalarMap, FunctionCalls);
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
Timer::addPeakMemoryMeasurement();
|
Timer::addPeakMemoryMeasurement();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user