[llvm] [JumpThreading] Add a hook to override options (PR #111826)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 12 02:20:08 PDT 2024


================
@@ -304,10 +300,9 @@ bool JumpThreadingPass::runImpl(Function &F_, FunctionAnalysisManager *FAM_,
   // size.
   if (BBDuplicateThreshold.getNumOccurrences())
----------------
wangpc-pp wrote:

What I want is to override these options in `TargetTransformInfo`. If we support specifying these options in pass pipeline syntax, then there will be three places (`cl::opt`, pass pipelone, `TargetTransformInfo`)that can override these options. This makes the override policy much more complicated.

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


More information about the llvm-commits mailing list