[llvm] [PassBuilder] Replace `bool LTOPreLink` with `ThinOrFullLTOPhase Phase` (PR #114564)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 09:44:42 PDT 2024


================
@@ -1635,6 +1632,8 @@ PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level,
   // Emit annotation remarks.
   addAnnotationRemarksPass(MPM);
 
+  bool LTOPreLink = Phase == ThinOrFullLTOPhase::FullLTOPreLink ||
+                    Phase == ThinOrFullLTOPhase::ThinLTOPreLink;
----------------
nikic wrote:

There's an `isLTOPreLink()` helper for this.

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


More information about the llvm-commits mailing list