[llvm] [llvm-profdata] Enabled functionality to write split-layout profile (PR #101795)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 09:54:38 PDT 2024


================
@@ -0,0 +1,2 @@
+RUN: llvm-profdata merge --sample --extbinary --split_layout %p/Inputs/sample-profile.proftext -o %t-output
+RUN: diff %t-output %p/Inputs/split-layout.profdata
----------------
ellishg wrote:

Is there a way to test this without checking in the binary file `split-layout.profdata`?

If you must use a binary file, consider using `printf` to create the file so changes can be reviewed.
https://github.com/llvm/llvm-project/blob/74125fa5ef3e730e53a2685ad7d930a8c685fff9/llvm/test/tools/llvm-cgdata/error.test#L25-L29

https://github.com/llvm/llvm-project/pull/101795


More information about the llvm-commits mailing list