[clang] [flang] [lld] [llvm] [mlir] [Passes] Make PipelineTuningOptions not read library options (PR #238434)

Alexis Engelke via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 00:54:15 PST 2026


================
@@ -170,27 +170,35 @@ extern cl::opt<bool> EnableMemProfContextDisambiguation;
 extern cl::opt<bool> EnableProfcheckInPipeline;
 } // namespace llvm
 
-PipelineTuningOptions::PipelineTuningOptions(
-    const cl::LibraryOptionsContext *LibraryOptions) {
-  const PassesOptions &Opts =
-      cl::LibraryOptionsContext::get<PassesOptions>(LibraryOptions);
+PipelineTuningOptions::PipelineTuningOptions() {
   LoopInterleaving = true;
   LoopVectorization = true;
   SLPVectorization = false;
   LoopUnrolling = true;
-  LoopInterchange = Opts.enable_loopinterchange;
   LoopFusion = false;
-  ForgetAllSCEVInLoopUnroll = getForgetSCEVInLoopUnroll(LibraryOptions);
-  LicmMssaOptCap = getLicmMssaOptCap(LibraryOptions);
-  LicmMssaNoAccForPromotionCap =
-      getLicmMssaNoAccForPromotionCap(LibraryOptions);
   CallGraphProfile = true;
   UnifiedLTO = false;
-  MergeFunctions = Opts.enable_merge_functions;
   InlinerThreshold = -1;
----------------
aengelke wrote:

Can we also move the other initializers to the header now so that all members have valid default initializers?

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


More information about the cfe-commits mailing list