[llvm-commits] CVS: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Aug 18 23:02:07 PDT 2003
Changes in directory llvm/lib/Reoptimizer/LightWtProfiling/Trigger:
Initialization.cpp updated: 1.2 -> 1.3
---
Log message:
Initialization.cpp: Add defn of count_trace_cycles as a bool (replacing
GET_COVERAGE).
Add three more command line options to tune the reoptimizer's parameters.
---
Diffs of the changes:
Index: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp
diff -u llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp:1.2 llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp:1.3
--- llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp:1.2 Mon Aug 18 15:34:00 2003
+++ llvm/lib/Reoptimizer/LightWtProfiling/Trigger/Initialization.cpp Mon Aug 18 22:59:48 2003
@@ -23,6 +23,7 @@
TraceCache *tr2;
VirtualMem *vm;
Module *M;
+bool count_trace_cycles;
// Command line options. Use these to set the global variables. For
// now the reoptimizer code references the global variables
@@ -37,6 +38,21 @@
SLIThreshold("sli-threshold", cl::init(DEFAULT_THRESHOLD_LEVEL_2),
cl::location(THRESHOLD_LEVEL_2));
+// FIXME: What are the units of these next two?
+// Size of trace cache used for SLI-instrumented code
+cl::opt<int32_t>
+InstTraceCacheSize("inst-trace-cache-size",
+ cl::init(30000));
+
+// Size of trace cache used for optimized code
+cl::opt<int32_t>
+OptTraceCacheSize("opt-trace-cache-size",
+ cl::init(30000));
+
+cl::opt<bool, true>
+CountTraceCycles("count-trace-cycles", cl::init(false),
+ cl::location(count_trace_cycles));
+
/// reoptimizerInitialize - Initialization method for the
/// reoptimizer. A call to this function from main() is inserted by
/// the opt -instloops pass
@@ -46,8 +62,8 @@
cl::ParseEnvironmentOptions ("reoptimizer", "LLVM_REOPTIMIZER",
" llvm dynamic optimizer");
vm = new VirtualMem();
- tr = new TraceCache(30000, vm);
- tr2 = new TraceCache(dummyFunction2, 30000, vm);
+ tr = new TraceCache(InstTraceCacheSize, vm);
+ tr2 = new TraceCache(dummyFunction2, OptTraceCacheSize, vm);
LEVEL_TWO_EXITS = THRESHOLD_LEVEL_2/3;
More information about the llvm-commits
mailing list