[PATCH] D95495: Emit metadata if there is a profile hash mismatch

Sriraman Tallam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 21:30:55 PST 2021


tmsriram added inline comments.


================
Comment at: llvm/test/Transforms/PGOProfile/hash_mismatch_metadata.ll:2
+; RUN: llvm-profdata merge %S/Inputs/hash_mismatch_metadata.proftext -o %t.profdata
+; RUN: opt < %s -mtriple=x86_64-linux-gnu -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s
+
----------------
snehasish wrote:
> Would it be useful to add a test to check that existing metadata is preserved?
I wasnt sure how to do it but I found a way. I can introduce a synthetic annotation. Let me update.


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

https://reviews.llvm.org/D95495



More information about the llvm-commits mailing list