[llvm] Add a pass to calculate machine function's cfg hash to detect whether… (PR #84145)

Rahman Lavaee via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 15:34:35 PDT 2024


================
@@ -254,6 +254,11 @@ static cl::opt<bool>
     GCEmptyBlocks("gc-empty-basic-blocks", cl::init(false), cl::Hidden,
                   cl::desc("Enable garbage-collecting empty basic blocks"));
 
+/// Enable calculating machine function's cfg hash.
+static cl::opt<bool> UseMachineFunctionCFGHash(
+    "mf-cfg-hash", cl::init(false), cl::Hidden,
+    cl::desc("Enable calculating machine function's cfg hash."));
----------------
rlavaee wrote:

Could you please rename and rephrase the description of this option? It doesn't mention what it will be used for.

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


More information about the llvm-commits mailing list