mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Add more verbose comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1582,17 +1582,16 @@ void DSGraph::AssertGraphOK() const {
|
|||||||
AssertAuxCallNodesInGraph();
|
AssertAuxCallNodesInGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
// A function useful for clients to incorporate the globals graph
|
/// mergeInGlobalsGraph - This method is useful for clients to incorporate the
|
||||||
// into the DS, BU or TD graph for a function. This code retains
|
/// globals graph into the DS, BU or TD graph for a function. This code retains
|
||||||
// all globals, i.e., does not delete unreachable globals after they
|
/// all globals, i.e., does not delete unreachable globals after they are
|
||||||
// are inlined.
|
/// inlined.
|
||||||
//
|
///
|
||||||
void DSGraph::mergeInGlobalsGraph()
|
void DSGraph::mergeInGlobalsGraph() {
|
||||||
{
|
|
||||||
NodeMapTy GlobalNodeMap;
|
NodeMapTy GlobalNodeMap;
|
||||||
ScalarMapTy OldValMap;
|
ScalarMapTy OldValMap;
|
||||||
ReturnNodesTy OldRetNodes;
|
ReturnNodesTy OldRetNodes;
|
||||||
this->cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap,
|
cloneInto(*GlobalsGraph, OldValMap, OldRetNodes, GlobalNodeMap,
|
||||||
DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes |
|
DSGraph::KeepAllocaBit | DSGraph::DontCloneCallNodes |
|
||||||
DSGraph::DontCloneAuxCallNodes);
|
DSGraph::DontCloneAuxCallNodes);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user