[llvm-commits] CVS: reopt/lib/LightWtProfiling/Initialization.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 4 14:18:34 PDT 2004
Changes in directory reopt/lib/LightWtProfiling:
Initialization.cpp updated: 1.20 -> 1.21
---
Log message:
Shorten description of -count-trace-cycles.
I didn't realize trunc() was C99, and not available via Solaris's
<cmath>. So, out it goes.
---
Diffs of the changes: (+3 -3)
Index: reopt/lib/LightWtProfiling/Initialization.cpp
diff -u reopt/lib/LightWtProfiling/Initialization.cpp:1.20 reopt/lib/LightWtProfiling/Initialization.cpp:1.21
--- reopt/lib/LightWtProfiling/Initialization.cpp:1.20 Mon Oct 4 15:23:09 2004
+++ reopt/lib/LightWtProfiling/Initialization.cpp Mon Oct 4 16:18:24 2004
@@ -64,7 +64,7 @@
cl::desc("Number of iterations of SLI before path counters are sampled"));
cl::opt<bool, true>
CountTraceCycles("count-trace-cycles", cl::location(count_trace_cycles),
- cl::desc("Insert entry/exit instrumentation calls to libcpc to count cycles, when using trace layout engine"));
+ cl::desc("Count cycles in optimized trace, when using trace layout engine"));
cl::opt<bool, true>
EnableTraceOpt("enable-trace-opt", cl::location(enable_trace_optimizer),
cl::desc("Use the new trace optimizer instead of the old trace layout engine"));
@@ -97,8 +97,8 @@
// Set up the phase-change detection stuff (normally disabled).
if (enable_phase_detect) {
double d = TimerIntS;
- timer_interval_sec = (int32_t) trunc (d);
- timer_interval_nsec = (int32_t) ((d - trunc (d)) * 1.0e9);
+ timer_interval_sec = (int32_t) d;
+ timer_interval_nsec = (int32_t) ((d - ((int32_t)d)) * 1.0e9);
initialize_timer ();
}
More information about the llvm-commits
mailing list