[PATCH] D66324: clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 09:45:19 PDT 2020


xbolva00 added inline comments.


================
Comment at: cfe/trunk/lib/Frontend/CompilerInvocation.cpp:3457
+  if (Diags.isIgnored(diag::warn_profile_data_misexpect, SourceLocation()))
+    Res.FrontendOpts.LLVMArgs.push_back("-pgo-warn-misexpect");
+
----------------
rnk wrote:
> Clang generally tries to avoid relying on LLVM option parsing if at all possible. It is not thread-safe, among other things. This causes essentially every compile to call `llvm::cl::ParseCommandLineOptions`, when previously it would only happen if the user passed unstable -mllvm flags.
And it is buggy, if you add "!" as a fix, there are many test failures...
http://45.33.8.238/linux/18098/step_7.txt


Repository:
  rL LLVM

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

https://reviews.llvm.org/D66324



More information about the cfe-commits mailing list