Lines Matching refs:Level
214 static bool isOptimizingForSize(PassBuilder::OptimizationLevel Level) { in isOptimizingForSize() argument
215 switch (Level) { in isOptimizingForSize()
321 FunctionPassManager &FPM, PassBuilder::OptimizationLevel Level) { in invokePeepholeEPCallbacks() argument
323 C(FPM, Level); in invokePeepholeEPCallbacks()
363 PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level, in buildFunctionSimplificationPipeline() argument
366 assert(Level != O0 && "Must request optimizations!"); in buildFunctionSimplificationPipeline()
393 if (Level == O3) in buildFunctionSimplificationPipeline()
397 if (!isOptimizingForSize(Level)) in buildFunctionSimplificationPipeline()
400 invokePeepholeEPCallbacks(FPM, Level); in buildFunctionSimplificationPipeline()
405 !isOptimizingForSize(Level)) in buildFunctionSimplificationPipeline()
434 LPM1.addPass(LoopRotatePass(Level != Oz)); in buildFunctionSimplificationPipeline()
441 C(LPM2, Level); in buildFunctionSimplificationPipeline()
449 LPM2.addPass(LoopFullUnrollPass(Level)); in buildFunctionSimplificationPipeline()
452 C(LPM2, Level); in buildFunctionSimplificationPipeline()
463 if (Level != O1) { in buildFunctionSimplificationPipeline()
488 invokePeepholeEPCallbacks(FPM, Level); in buildFunctionSimplificationPipeline()
498 C(FPM, Level); in buildFunctionSimplificationPipeline()
505 invokePeepholeEPCallbacks(FPM, Level); in buildFunctionSimplificationPipeline()
507 if (EnableCHR && Level == O3 && PGOOpt && in buildFunctionSimplificationPipeline()
515 PassBuilder::OptimizationLevel Level, in addPGOInstrPasses() argument
524 if (!isOptimizingForSize(Level)) { in addPGOInstrPasses()
544 invokePeepholeEPCallbacks(FPM, Level); in addPGOInstrPasses()
577 getInlineParamsFromOptLevel(PassBuilder::OptimizationLevel Level) { in getInlineParamsFromOptLevel() argument
579 unsigned OptLevel = Level > O3 ? 2 : Level; in getInlineParamsFromOptLevel()
580 unsigned SizeLevel = Level > O3 ? Level - O3 : 0; in getInlineParamsFromOptLevel()
585 PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level, in buildModuleSimplificationPipeline() argument
601 if (Level == O3) in buildModuleSimplificationPipeline()
660 invokePeepholeEPCallbacks(GlobalCleanupPM, Level); in buildModuleSimplificationPipeline()
668 addPGOInstrPasses(MPM, DebugLogging, Level, PGOOpt->RunProfileGen, in buildModuleSimplificationPipeline()
702 InlineParams IP = getInlineParamsFromOptLevel(Level); in buildModuleSimplificationPipeline()
713 if (Level == O3) in buildModuleSimplificationPipeline()
719 buildFunctionSimplificationPipeline(Level, Phase, DebugLogging))); in buildModuleSimplificationPipeline()
727 C(MainCGPipeline, Level); in buildModuleSimplificationPipeline()
742 PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level, in buildModuleOptimizationPipeline() argument
789 C(OptimizePM, Level); in buildModuleOptimizationPipeline()
840 createFunctionToLoopPassAdaptor(LoopUnrollAndJamPass(Level))); in buildModuleOptimizationPipeline()
842 OptimizePM.addPass(LoopUnrollPass(LoopUnrollOptions(Level))); in buildModuleOptimizationPipeline()
876 C(OptimizePM, Level); in buildModuleOptimizationPipeline()
894 PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level, in buildPerModuleDefaultPipeline() argument
896 assert(Level != O0 && "Must request optimizations for the default pipeline!"); in buildPerModuleDefaultPipeline()
911 MPM.addPass(buildModuleSimplificationPipeline(Level, ThinLTOPhase::None, in buildPerModuleDefaultPipeline()
915 MPM.addPass(buildModuleOptimizationPipeline(Level, DebugLogging)); in buildPerModuleDefaultPipeline()
921 PassBuilder::buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level, in buildThinLTOPreLinkDefaultPipeline() argument
923 assert(Level != O0 && "Must request optimizations for the default pipeline!"); in buildThinLTOPreLinkDefaultPipeline()
940 MPM.addPass(buildModuleSimplificationPipeline(Level, ThinLTOPhase::PreLink, in buildThinLTOPreLinkDefaultPipeline()
960 OptimizationLevel Level, bool DebugLogging, in buildThinLTODefaultPipeline() argument
994 MPM.addPass(buildModuleSimplificationPipeline(Level, ThinLTOPhase::PostLink, in buildThinLTODefaultPipeline()
998 MPM.addPass(buildModuleOptimizationPipeline(Level, DebugLogging)); in buildThinLTODefaultPipeline()
1004 PassBuilder::buildLTOPreLinkDefaultPipeline(OptimizationLevel Level, in buildLTOPreLinkDefaultPipeline() argument
1006 assert(Level != O0 && "Must request optimizations for the default pipeline!"); in buildLTOPreLinkDefaultPipeline()
1008 return buildPerModuleDefaultPipeline(Level, DebugLogging); in buildLTOPreLinkDefaultPipeline()
1012 PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level, bool DebugLogging, in buildLTODefaultPipeline() argument
1014 assert(Level != O0 && "Must request optimizations for the default pipeline!"); in buildLTODefaultPipeline()
1035 if (Level > 1) { in buildLTODefaultPipeline()
1073 if (Level == 1) { in buildLTODefaultPipeline()
1098 if (Level == O3) in buildLTODefaultPipeline()
1101 invokePeepholeEPCallbacks(PeepholeFPM, Level); in buildLTODefaultPipeline()
1111 InlinerPass(getInlineParamsFromOptLevel(Level)))); in buildLTODefaultPipeline()
1123 invokePeepholeEPCallbacks(FPM, Level); in buildLTODefaultPipeline()
1175 invokePeepholeEPCallbacks(MainFPM, Level); in buildLTODefaultPipeline()