[llvm] 89a080c - [llvm][NFC] Document cl::opt MisExpectTolerance and fix typo

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 09:19:22 PDT 2024


Author: Paul Kirth
Date: 2024-05-13T16:19:09Z
New Revision: 89a080cb79972abae240c226090af9a3094e2269

URL: https://github.com/llvm/llvm-project/commit/89a080cb79972abae240c226090af9a3094e2269
DIFF: https://github.com/llvm/llvm-project/commit/89a080cb79972abae240c226090af9a3094e2269.diff

LOG: [llvm][NFC] Document cl::opt MisExpectTolerance and fix typo



Pull Request: https://github.com/llvm/llvm-project/pull/90670

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/MisExpect.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/MisExpect.cpp b/llvm/lib/Transforms/Utils/MisExpect.cpp
index 6f5a25a26821b..759289384ee06 100644
--- a/llvm/lib/Transforms/Utils/MisExpect.cpp
+++ b/llvm/lib/Transforms/Utils/MisExpect.cpp
@@ -59,9 +59,10 @@ static cl::opt<bool> PGOWarnMisExpect(
     cl::desc("Use this option to turn on/off "
              "warnings about incorrect usage of llvm.expect intrinsics."));
 
+// Command line option for setting the diagnostic tolerance threshold
 static cl::opt<uint32_t> MisExpectTolerance(
     "misexpect-tolerance", cl::init(0),
-    cl::desc("Prevents emiting diagnostics when profile counts are "
+    cl::desc("Prevents emitting diagnostics when profile counts are "
              "within N% of the threshold.."));
 
 } // namespace llvm


        


More information about the llvm-commits mailing list