[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 18 15:45:01 PST 2002


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.38 -> 1.39

---
Log message:

Add peak memory usage support


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.38 llvm/lib/Analysis/DataStructure/Local.cpp:1.39
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.38	Sun Nov 10 00:53:38 2002
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Mon Nov 18 15:44:19 2002
@@ -18,6 +18,7 @@
 #include "llvm/Support/InstVisitor.h"
 #include "llvm/Target/TargetData.h"
 #include "Support/Statistic.h"
+#include "Support/Timer.h"
 
 // FIXME: This should eventually be a FunctionPass that is automatically
 // aggregated into a Pass.
@@ -132,6 +133,9 @@
   PrintAuxCalls = false;
   // Use the graph builder to construct the local version of the graph
   GraphBuilder B(*this, Nodes, RetNode, ScalarMap, FunctionCalls);
+#ifndef NDEBUG
+  Timer::addPeakMemoryMeasurement();
+#endif
   markIncompleteNodes();
 
   // Remove any nodes made dead due to merging...
@@ -142,7 +146,6 @@
 //===----------------------------------------------------------------------===//
 // Helper method implementations...
 //
-
 
 /// getValueDest - Return the DSNode that the actual value points to.
 ///





More information about the llvm-commits mailing list