tejohnson added a comment.

Generally lgtm, but why did the raw profiles change size from what is currently 
committed?



================
Comment at: llvm/test/Transforms/PGOProfile/Inputs/update_memprof_inputs.sh:63
+  delete[] f;
+
+  // Loop ensures the two calls to recurse have stack contexts that only differ
----------------
snehasish wrote:
> @tejohnson Turns out the LLVM IR matching issue was due to a difference in 
> the code from which the IR was generated. The one in the comments has a line 
> offset of 30 from `main` to the callsite of `recurse` whereas the memprof.ll 
> IR expects a line offset of 31. Perhaps a comment or blank line was omitted? 
> I added a blank line here and added a comment in the update script too. 
Hmm, yeah its definitely possible that when the code got copied in a blank line 
was inadvertently cut.


================
Comment at: llvm/test/tools/llvm-profdata/Inputs/update_memprof_inputs.sh:14
+
+read -r -d '' SRC1 << EOF
+#include <stdlib.h>
----------------
Maybe name these more clearly, like BASIC instead of SRC1, etc?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145644/new/

https://reviews.llvm.org/D145644

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to