[llvm-commits] CVS: llvm/runtime/libprofile/EdgeProfiling.c BlockProfiling.c
Brian Gaeke
gaeke at cs.uiuc.edu
Tue May 4 11:52:06 PDT 2004
Changes in directory llvm/runtime/libprofile:
EdgeProfiling.c updated: 1.1 -> 1.2
BlockProfiling.c updated: 1.2 -> 1.3
---
Log message:
Constants for profile info type changed names to match the C++ ones.
Edited comments.
---
Diffs of the changes: (+12 -11)
Index: llvm/runtime/libprofile/EdgeProfiling.c
diff -u llvm/runtime/libprofile/EdgeProfiling.c:1.1 llvm/runtime/libprofile/EdgeProfiling.c:1.2
--- llvm/runtime/libprofile/EdgeProfiling.c:1.1 Mon Mar 8 12:04:31 2004
+++ llvm/runtime/libprofile/EdgeProfiling.c Tue May 4 11:51:45 2004
@@ -23,12 +23,12 @@
* data.
*/
static void EdgeProfAtExitHandler() {
- /* Note that if this were doing something more intellegent with the
- instrumentation, that we could do some computation here to expand what we
- collected into simple edge profiles. Since we directly count each edge, we
- just write out all of the counters directly.
- */
- write_profiling_data(Edge, ArrayStart, NumElements);
+ /* Note that if this were doing something more intelligent with the
+ * instrumentation, we could do some computation here to expand what we
+ * collected into simple edge profiles. Since we directly count each edge, we
+ * just write out all of the counters directly.
+ */
+ write_profiling_data(EdgeInfo, ArrayStart, NumElements);
}
Index: llvm/runtime/libprofile/BlockProfiling.c
diff -u llvm/runtime/libprofile/BlockProfiling.c:1.2 llvm/runtime/libprofile/BlockProfiling.c:1.3
--- llvm/runtime/libprofile/BlockProfiling.c:1.2 Tue Feb 10 11:36:25 2004
+++ llvm/runtime/libprofile/BlockProfiling.c Tue May 4 11:51:46 2004
@@ -23,11 +23,12 @@
* data.
*/
static void BlockProfAtExitHandler() {
- /* Note that if this were doing something more intellegent with the
- instrumentation, that we could do some computation here to expand what we
- collected into simple block profiles. Since we directly count each block,
- */
- write_profiling_data(Block, ArrayStart, NumElements);
+ /* Note that if this were doing something more intelligent with the
+ * instrumentation, we could do some computation here to expand what we
+ * collected into simple block profiles. (Or we could do it in llvm-prof.)
+ * Regardless, we directly count each block, so no expansion is necessary.
+ */
+ write_profiling_data(BlockInfo, ArrayStart, NumElements);
}
More information about the llvm-commits
mailing list