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

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 8 05:00:16 PDT 2019


lebedev.ri added inline comments.


================
Comment at: clang/test/Profile/misexpect-branch-cold.c:4
+// RUN: llvm-profdata merge %S/Inputs/misexpect-branch.proftext -o %t.profdata
+// RUN: %clang_cc1 %s -O2 -o - -disable-llvm-passes -emit-llvm -fprofile-instrument-use-path=%t.profdata -verify -Wmisexpect
+
----------------
paulkirth wrote:
> lebedev.ri wrote:
> > Is there a test where `-Wmisexpect` isn't present, to verify that it is off-by-default?
> We can add one, but is that necessary? Don't the tests for diagnostics cover those already?
To clarify: i'm interested in the case where the PGO data is provided but `-Wmisexpect` is *not* specified.


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

https://reviews.llvm.org/D66324





More information about the cfe-commits mailing list