[flang-commits] [clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Sep 15 06:41:20 PDT 2025
================
@@ -995,7 +995,9 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
// Create the pass manager.
llvm::ModulePassManager mpm;
- if (opts.PrepareForFullLTO)
+ if (opts.PrepareForFatLTO)
+ mpm = pb.buildFatLTODefaultPipeline(level, opts.PrepareForThinLTO, true);
----------------
tarunprabhu wrote:
Passing `true` as the last argument unconditionally emits a summary. This is not what clang does. Is this ok for flang?
https://github.com/llvm/llvm-project/pull/158125
More information about the flang-commits
mailing list