[clang] [llvm] [clang][llvm][fatlto] Avoid cloning modules in FatLTO (PR #72180)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 27 14:53:34 PST 2023
================
@@ -810,7 +810,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
// Only enable CGProfilePass when using integrated assembler, since
// non-integrated assemblers don't recognize .cgprofile section.
PTO.CallGraphProfile = !CodeGenOpts.DisableIntegratedAS;
- PTO.UnifiedLTO = CodeGenOpts.UnifiedLTO;
+ PTO.UnifiedLTO = CodeGenOpts.UnifiedLTO || CodeGenOpts.FatLTO;
----------------
ilovepi wrote:
Exactly, but that doesn't change the behavior for cc1 invocations themselves ... or is that the expected behavior?
https://github.com/llvm/llvm-project/pull/72180
More information about the cfe-commits
mailing list