LowerSubregs should not clobber any analysis.
[oota-llvm.git] / runtime / libprofile / BlockProfiling.c
index 8170ce4cb43e5edf483c0ce18b5f372fbc770d4b..db80bffe56d34132f58a9dacb07dcf6075ea1cdf 100644 (file)
@@ -2,8 +2,8 @@
 |*
 |*                     The LLVM Compiler Infrastructure
 |*
-|* This file was developed by the LLVM research group and is distributed under
-|* the University of Illinois Open Source License. See LICENSE.TXT for details.
+|* This file is distributed under the University of Illinois Open Source      
+|* License. See LICENSE.TXT for details.                                      
 |* 
 |*===----------------------------------------------------------------------===*|
 |* 
@@ -23,11 +23,12 @@ static unsigned NumElements;
  * 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);
 }