[llvm-branch-commits] [misexpect] Support diagnostics from frontend profile data (PR #96524)

Teresa Johnson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 22 08:43:03 PDT 2024


================
@@ -369,9 +369,21 @@ static bool lowerExpectIntrinsic(Function &F) {
     if (BranchInst *BI = dyn_cast<BranchInst>(BB.getTerminator())) {
       if (handleBranchExpect(*BI))
         ExpectIntrinsicsHandled++;
+      else {
+        SmallVector<uint32_t> Weights;
+        if (extractBranchWeights(*BI, Weights))
+          misexpect::checkMissingAnnotations(*BI, Weights,
+                                             /*IsFrontendInstr=*/false);
----------------
teresajohnson wrote:

Confused about how this relates to enabling checking for frontend instrumentation since all of these set that flag to false?

https://github.com/llvm/llvm-project/pull/96524


More information about the llvm-branch-commits mailing list