================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to