[llvm] [BOLT] add disable pass flags (PR #93032)
Rafael Auler via llvm-commits
llvm-commits at lists.llvm.org
Wed May 22 11:54:52 PDT 2024
================
@@ -257,6 +257,56 @@ static cl::opt<bool> CMOVConversionFlag("cmov-conversion",
cl::ReallyHidden,
cl::cat(BoltOptCategory));
+static cl::opt<bool> DisableLongJmp("disable-longjmp-pass",
+ cl::desc("Disable the long jump pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool> DisableBranchFix("disable-branch-fix-pass",
+ cl::desc("Disable the branch fix pass"),
+ cl::ReallyHidden,
+ cl::cat(BoltOptCategory));
+
+static cl::opt<bool> DisableAligner("disable-aligner-pass",
+ cl::desc("Disable the aligner pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool> DisableVeneer("disable-veneer-pass",
+ cl::desc("Disable the veneer pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableUnreachable("disable-unreachable-pass",
+ cl::desc("Disable the unreachable pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableAnnotations("disable-annotations-pass",
+ cl::desc("Disable the annotations pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableNormalizeCFG("disable-normalize-cfg-pass",
+ cl::desc("Disable the normalize CFG pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableFunctionReorder("disable-function-reorder-pass",
+ cl::desc("Disable the function reorder pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableShortenInstruction("disable-shorten-instruction-pass",
+ cl::desc("Disable the shorten instruction pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool> DisableMemcpy("disable-memcpy-pass",
+ cl::desc("Disable the memcpy pass"),
+ cl::ReallyHidden, cl::cat(BoltOptCategory));
+
+static cl::opt<bool>
+ DisableFrameAlloc("disable-alloc-frame-pass",
----------------
rafaelauler wrote:
Frame pass is only enabled if you specify --frame-opt
https://github.com/llvm/llvm-project/pull/93032
More information about the llvm-commits
mailing list