[PATCH] D108747: [llvm][ProfileData] Add a warning to indicate potentially corrupted data

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 26 10:00:42 PDT 2021


phosek added a comment.

Since these fields come from the binary and should be identical (profile runtime simply copies them into the raw profile),  a different approach would be to have a new subcommand in `llvm-profdata` to validate the profile against the binary to check if those fields are indeed the same, for example something like `llvm-profdata validate --object=<binary> <profile>.profraw` (alternatively it could also be just a flag, for example `llvm-profdata merge --validate=<binary> <profile>.profraw`).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108747



More information about the llvm-commits mailing list