[flang-commits] [clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)
Anchu Rajendran S via flang-commits
flang-commits at lists.llvm.org
Tue Sep 16 13:01:14 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);
----------------
anchuraj wrote:
Sure. Thank you for pointing this out. I have made it consistent with the clang info. However, no summary block is emitted in any case in flang; even in case of Full LTO.
flang -fc1 -triple x86_64-unknown-linux-gnu -flto -emit-llvm-bc hello.f90 -o -| llvm-bcanalyzer -dump
does not have FULL_LTO_GLOBALVAL_SUMMARY_BLOCK where as,
clang -cc1 -triple x86_64-unknown-linux-gnu -flto -emit-llvm-bc hello.c -o -| llvm-bcanalyzer -dump
has.
I will work on enabling summary block for fatlto as a follow up
https://github.com/llvm/llvm-project/pull/158125
More information about the flang-commits
mailing list