[llvm] 68fa6f7 - [CSSPGO][NFC] Allow cl::ZeroOrMore for use-iterative-bfi-inference

Wenlei He via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 18 13:22:51 PDT 2021


Author: Wenlei He
Date: 2021-07-18T13:22:32-07:00
New Revision: 68fa6f7c7ccc88efc511bf1b26142cdd48c5dc5c

URL: https://github.com/llvm/llvm-project/commit/68fa6f7c7ccc88efc511bf1b26142cdd48c5dc5c
DIFF: https://github.com/llvm/llvm-project/commit/68fa6f7c7ccc88efc511bf1b26142cdd48c5dc5c.diff

LOG: [CSSPGO][NFC] Allow cl::ZeroOrMore for use-iterative-bfi-inference

Added: 
    

Modified: 
    llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
index 037f0091f084..e4e45b3076be 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
@@ -48,7 +48,7 @@ cl::opt<bool> CheckBFIUnknownBlockQueries(
              "for debugging missed BFI updates"));
 
 cl::opt<bool> UseIterativeBFIInference(
-    "use-iterative-bfi-inference", cl::init(false), cl::Hidden,
+    "use-iterative-bfi-inference", cl::init(false), cl::Hidden, cl::ZeroOrMore,
     cl::desc("Apply an iterative post-processing to infer correct BFI counts"));
 
 cl::opt<unsigned> IterativeBFIMaxIterationsPerBlock(


        


More information about the llvm-commits mailing list