mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add peak memory usage support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49a1ed07ab
commit
4fe346184a
@ -18,6 +18,7 @@
|
|||||||
#include "llvm/Support/InstVisitor.h"
|
#include "llvm/Support/InstVisitor.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
|
#include "Support/Timer.h"
|
||||||
|
|
||||||
// FIXME: This should eventually be a FunctionPass that is automatically
|
// FIXME: This should eventually be a FunctionPass that is automatically
|
||||||
// aggregated into a Pass.
|
// aggregated into a Pass.
|
||||||
@ -132,6 +133,9 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : Func(&F), GlobalsGraph(GG) {
|
|||||||
PrintAuxCalls = false;
|
PrintAuxCalls = false;
|
||||||
// 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(*this, Nodes, RetNode, ScalarMap, FunctionCalls);
|
GraphBuilder B(*this, Nodes, RetNode, ScalarMap, FunctionCalls);
|
||||||
|
#ifndef NDEBUG
|
||||||
|
Timer::addPeakMemoryMeasurement();
|
||||||
|
#endif
|
||||||
markIncompleteNodes();
|
markIncompleteNodes();
|
||||||
|
|
||||||
// Remove any nodes made dead due to merging...
|
// Remove any nodes made dead due to merging...
|
||||||
@ -143,7 +147,6 @@ DSGraph::DSGraph(Function &F, DSGraph *GG) : Func(&F), GlobalsGraph(GG) {
|
|||||||
// Helper method implementations...
|
// Helper method implementations...
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
/// getValueDest - Return the DSNode that the actual value points to.
|
/// getValueDest - Return the DSNode that the actual value points to.
|
||||||
///
|
///
|
||||||
DSNodeHandle GraphBuilder::getValueDest(Value &Val) {
|
DSNodeHandle GraphBuilder::getValueDest(Value &Val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user