[PATCH] CodeGen: Emit warnings when dropping profile data during PGO

Justin Bogner mail at justinbogner.com
Thu Apr 10 11:53:27 PDT 2014


This adds a warning that triggers when profile data doesn't match for
the source that's being compiled with -fprofile-instr-use=. This fires
only once per translation unit, as warning on every mismatched function
would be quite noisy.

The warning is added to DiagnosticSemaKinds because several other
warnings in IRGen seem to live there and there is no
DiagnosticCodeGenKinds. If there's a more appropriate place, please let
me know.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mismatch-once-per-tu.patch
Type: text/x-patch
Size: 8862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140410/a3f703ce/attachment.bin>


More information about the cfe-commits mailing list