mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
add a method to compute a commonly used mapping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -45,13 +45,11 @@ static void CheckAllGraphs(Module *M, GT &ECGraphs) {
|
||||
for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
|
||||
if (!I->isExternal()) {
|
||||
DSGraph &G = ECGraphs.getDSGraph(*I);
|
||||
if (G.getReturnNodes().begin()->first != I)
|
||||
continue; // Only check a graph once.
|
||||
|
||||
DSGraph::NodeMapTy GlobalsGraphNodeMapping;
|
||||
for (DSScalarMap::global_iterator I = G.getScalarMap().global_begin(),
|
||||
E = G.getScalarMap().global_end(); I != E; ++I)
|
||||
DSGraph::computeNodeMapping(G.getNodeForValue(*I),
|
||||
GG.getNodeForValue(*I),
|
||||
GlobalsGraphNodeMapping);
|
||||
G.computeGlobalGraphMapping(GlobalsGraphNodeMapping);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user