60 cl::desc(
"Run GVN instead of Early CSE after vectorization passes"));
64 cl::desc(
"Run cleanup optimization passes after vectorization."));
68 cl::desc(
"Run the loop rerolling pass"));
77 cl::desc(
"Enable the new, experimental CFL alias analysis"),
80 "Enable unification-based CFL-AA"),
82 "Enable inclusion-based CFL-AA"),
84 "Enable both variants of CFL-AA")));
88 cl::desc(
"Enable the new, experimental LoopInterchange Pass"));
92 cl::desc(
"Enable Unroll And Jam Pass"));
96 cl::desc(
"Enable preparation for ThinLTO."));
100 cl::desc(
"Enable performing ThinLTO."));
103 cl::desc(
"Enable hot-cold splitting pass"));
107 cl::desc(
"Enable the experimental Loop Versioning LICM pass"));
111 cl::desc(
"Disable pre-instrumentation inliner"));
115 cl::desc(
"Control the amount of inlining in pre-instrumentation inliner " 120 cl::desc(
"Enable the GVN hoisting pass (default = off)"));
125 cl::desc(
"Disable shrink-wrap library calls"));
129 cl::desc(
"Enable the simple loop unswitch pass. Also enables independent " 130 "cleanup passes integrated into the loop pass manager pipeline."));
134 cl::desc(
"Enable the GVN sinking pass (default = off)"));
140 cl::desc(
"Enable control height reduction optimization (CHR)"));
144 cl::desc(
"Indicate the sample profile being used is flattened, i.e., " 145 "no inline hierachy exists in the profile. "));
149 cl::desc(
"Enable order file instrumentation (default = off)"));
153 cl::desc(
"Enable lowering of the matrix intrinsics"));
158 LibraryInfo =
nullptr;
160 DisableUnrollLoops =
false;
168 DisableGVNLoadPRE =
false;
171 VerifyOutput =
false;
172 MergeFunctions =
false;
173 PrepareForLTO =
false;
174 EnablePGOInstrGen =
false;
175 EnablePGOCSInstrGen =
false;
176 EnablePGOCSInstrUse =
false;
182 DivergentTarget =
false;
206 PassManagerBuilder::GlobalExtensionID
208 PassManagerBuilder::ExtensionFn Fn) {
209 auto ExtensionID = GlobalExtensionsCounter++;
210 GlobalExtensions->push_back(std::make_tuple(Ty, std::move(Fn), ExtensionID));
215 PassManagerBuilder::GlobalExtensionID ExtensionID) {
221 auto GlobalExtension =
223 return std::get<2>(elem) == ExtensionID;
226 "The extension ID to be removed should always be valid.");
232 Extensions.push_back(std::make_pair(Ty, std::move(Fn)));
239 if (std::get<0>(
Ext) == ETy)
240 std::get<1>(
Ext)(*
this, PM);
243 for (
unsigned i = 0,
e = Extensions.size(); i !=
e; ++i)
244 if (Extensions[i].
first == ETy)
245 Extensions[i].second(*
this, PM);
248 void PassManagerBuilder::addInitialAliasAnalysisPasses(
272 void PassManagerBuilder::addInstructionCombiningPass(
274 bool ExpensiveCombines = OptLevel > 2;
280 addExtensionsToPM(EP_EarlyAsPossible, FPM);
287 if (OptLevel == 0)
return;
289 addInitialAliasAnalysisPasses(FPM);
301 if (!EnablePGOCSInstrGen && !EnablePGOCSInstrUse)
303 }
else if (!EnablePGOInstrGen && PGOInstrUse.empty() && PGOSampleUse.empty())
309 if (OptLevel > 0 && SizeLevel == 0 && !DisablePreInliner &&
310 PGOSampleUse.empty() && !IsCS) {
326 addExtensionsToPM(EP_Peephole, MPM);
328 if ((EnablePGOInstrGen && !IsCS) || (EnablePGOCSInstrGen && IsCS)) {
332 if (!PGOInstrGen.empty())
339 if (!PGOInstrUse.empty())
344 if (OptLevel > 0 && !IsCS)
348 void PassManagerBuilder::addFunctionSimplificationPasses(
352 assert(OptLevel >= 1 &&
"Calling function optimizer with no optimization level!");
376 addInstructionCombiningPass(MPM);
377 if (SizeLevel == 0 && !DisableLibCallsShrinkWrap)
379 addExtensionsToPM(EP_Peephole, MPM);
392 if (EnableSimpleLoopUnswitch) {
403 if (EnableSimpleLoopUnswitch)
411 addInstructionCombiningPass(MPM);
415 addExtensionsToPM(EP_LateLoopOptimizations, MPM);
418 if (EnableLoopInterchange)
423 ForgetAllSCEVInLoopUnroll));
424 addExtensionsToPM(EP_LoopOptimizerEnd, MPM);
442 addInstructionCombiningPass(MPM);
443 addExtensionsToPM(EP_Peephole, MPM);
451 addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
460 addInstructionCombiningPass(MPM);
461 addExtensionsToPM(EP_Peephole, MPM);
463 if (EnableCHR && OptLevel >= 3 &&
464 (!PGOInstrUse.empty() || !PGOSampleUse.empty() || EnablePGOCSInstrGen))
472 bool DefaultOrPreLinkPipeline = !PerformThinLTO;
474 if (!PGOSampleUse.empty()) {
479 if (!(FlattenedProfileUsed && PerformThinLTO))
489 addPGOInstrPasses(MPM);
505 if (PerformThinLTO) {
513 addExtensionsToPM(EP_EnabledOnOptLevel0, MPM);
515 if (PrepareForLTO || PrepareForThinLTO) {
530 addInitialAliasAnalysisPasses(MPM);
541 !PGOSampleUse.empty()));
546 bool PrepareForThinLTOUsingPGOSampleProfile =
547 PrepareForThinLTO && !PGOSampleUse.empty();
548 if (PrepareForThinLTOUsingPGOSampleProfile)
549 DisableUnrollLoops =
true;
554 addExtensionsToPM(EP_ModuleOptimizerEarly, MPM);
571 addInstructionCombiningPass(MPM);
572 addExtensionsToPM(EP_Peephole, MPM);
580 if (DefaultOrPreLinkPipeline && !PrepareForThinLTOUsingPGOSampleProfile)
581 addPGOInstrPasses(MPM);
585 if (!PerformThinLTO && EnablePGOCSInstrGen)
595 bool RunInliner =
false;
606 addExtensionsToPM(EP_CGSCCOptimizerLate, MPM);
607 addFunctionSimplificationPasses(MPM);
617 if (OptLevel > 1 && !PrepareForLTO && !PrepareForThinLTO)
634 if (!(PrepareForLTO || PrepareForThinLTO))
635 addPGOInstrPasses(MPM,
true);
637 if (EnableOrderFileInstrumentation)
656 if (PrepareForThinLTO) {
659 addExtensionsToPM(EP_OptimizerLast, MPM);
676 if (UseLoopVersioningLICM) {
709 addExtensionsToPM(EP_VectorizerStart, MPM);
733 addInstructionCombiningPass(MPM);
743 addInstructionCombiningPass(MPM);
747 addInstructionCombiningPass(MPM);
764 addExtensionsToPM(EP_Peephole, MPM);
765 addInstructionCombiningPass(MPM);
767 if (EnableUnrollAndJam && !DisableUnrollLoops) {
776 ForgetAllSCEVInLoopUnroll));
778 if (!DisableUnrollLoops) {
780 addInstructionCombiningPass(MPM);
807 if (EnableHotColdSplit && !(PrepareForLTO || PrepareForThinLTO))
830 addExtensionsToPM(EP_OptimizerLast, MPM);
841 if (!PGOSampleUse.empty()) {
851 addInitialAliasAnalysisPasses(PM);
918 addInstructionCombiningPass(PM);
919 addExtensionsToPM(EP_Peephole, PM);
931 addPGOInstrPasses(PM,
true);
943 addInstructionCombiningPass(PM);
944 addExtensionsToPM(EP_Peephole, PM);
972 if (EnableLoopInterchange)
977 ForgetAllSCEVInLoopUnroll));
981 ForgetAllSCEVInLoopUnroll));
988 addInstructionCombiningPass(PM);
991 addInstructionCombiningPass(PM);
1003 addInstructionCombiningPass(PM);
1004 addExtensionsToPM(EP_Peephole, PM);
1009 void PassManagerBuilder::addLateLTOOptimizationPasses(
1013 if (EnableHotColdSplit)
1033 PerformThinLTO =
true;
1040 if (ImportSummary) {
1057 populateModulePassManager(PM);
1061 PerformThinLTO =
false;
1071 addExtensionsToPM(EP_FullLinkTimeOptimizationEarly, PM);
1074 addLTOOptimizationPasses(PM);
1092 addLateLTOOptimizationPasses(PM);
1094 addExtensionsToPM(EP_FullLinkTimeOptimizationLast, PM);
1120 unsigned OptLevel) {
1127 unsigned SizeLevel) {
1183 if (RunInliner && !Builder->
Inliner)
Super simple passes to force specific function attrs from the commandline into the IR for debugging p...
Defines passes for running instruction simplification across chunks of IR.
cl::opt< bool > EnableOrderFileInstrumentation("enable-order-file-instrumentation", cl::init(false), cl::Hidden, cl::desc("Enable order file instrumentation (default = off)"))
ModulePass * createPGOInstrumentationGenLegacyPass(bool IsCS=false)
ModulePass * createNameAnonGlobalPass()
===------------------------------------------------------------------—===//
Pass * createSimpleLoopUnrollPass(int OptLevel=2, bool OnlyWhenForced=false, bool ForgetAllSCEV=false)
Pass * createLoopRerollPass()
Thresholds to tune inline cost analysis.
ModulePass * createStripDeadPrototypesPass()
createStripDeadPrototypesPass - This pass removes any function declarations (prototypes) that are not...
static cl::opt< bool > UseLoopVersioningLICM("enable-loop-versioning-licm", cl::init(false), cl::Hidden, cl::desc("Enable the experimental Loop Versioning LICM pass"))
PassManagerBuilder - This class is used to set up a standard optimization sequence for languages like...
This is the interface for LLVM's inclusion-based alias analysis implemented with CFL graph reachabili...
This class represents lattice values for constants.
ModulePass * createMergeFunctionsPass()
createMergeFunctionsPass - This pass discovers identical functions and collapses them.
cl::opt< bool > ForgetSCEVInLoopUnroll
This is the interface for a simple mod/ref and alias analysis over globals.
FunctionPass * createPGOMemOPSizeOptLegacyPass()
void populateThinLTOPassManager(legacy::PassManagerBase &PM)
static cl::opt< bool > EnableGVNHoist("enable-gvn-hoist", cl::init(false), cl::Hidden, cl::desc("Enable the GVN hoisting pass (default = off)"))
static GlobalExtensionID addGlobalExtension(ExtensionPointTy Ty, ExtensionFn Fn)
Adds an extension that will be used by all PassManagerBuilder instances.
Pass * createLoopVectorizePass()
This is the interface for a metadata-based scoped no-alias analysis.
FunctionPass * createVerifierPass(bool FatalErrors=true)
ModulePass * createIPSCCPPass()
createIPSCCPPass - This pass propagates constants from call sites into the bodies of functions...
FunctionPass * createFloat2IntPass()
virtual void add(Pass *P)=0
Add a pass to the queue of passes to run.
ModulePass * createEliminateAvailableExternallyPass()
This transform is designed to eliminate available external globals (functions or global variables) ...
FunctionPass * createGVNHoistPass()
ModulePass * createCanonicalizeAliasesPass()
ImmutablePass * createScopedNoAliasAAWrapperPass()
FunctionPass * createAlignmentFromAssumptionsPass()
Pass * Inliner
Inliner - Specifies the inliner to use.
FunctionPass * createJumpThreadingPass(int Threshold=-1)
cl::opt< bool > FlattenedProfileUsed("flattened-profile-used", cl::init(false), cl::Hidden, cl::desc("Indicate the sample profile being used is flattened, i.e., " "no inline hierachy exists in the profile. "))
ModulePass * createPGOInstrumentationGenCreateVarLegacyPass(StringRef CSInstrName=StringRef(""))
FunctionPass * createCFGSimplificationPass(unsigned Threshold=1, bool ForwardSwitchCond=false, bool ConvertSwitch=false, bool KeepLoops=true, bool SinkCommon=false, std::function< bool(const Function &)> Ftor=nullptr)
cl::opt< bool > EnableLoopInterleaving
ModulePass * createInstrProfilingLegacyPass(const InstrProfOptions &Options=InstrProfOptions(), bool IsCS=false)
Insert frontend instrumentation based profiling. Parameter IsCS indicates if.
ModulePass * createPartialInliningPass()
createPartialInliningPass - This pass inlines parts of functions.
FunctionPass * createMergedLoadStoreMotionPass(bool SplitFooterBB=false)
createMergedLoadStoreMotionPass - The public interface to this file.
Attribute unwrap(LLVMAttributeRef Attr)
Optional< int > HintThreshold
Threshold to use for callees with inline hint.
void populateLTOPassManager(legacy::PassManagerBase &PM)
ModulePass * createCrossDSOCFIPass()
This pass export CFI checks for use by external modules.
static cl::opt< bool > ExtraVectorizerPasses("extra-vectorizer-passes", cl::init(false), cl::Hidden, cl::desc("Run cleanup optimization passes after vectorization."))
FunctionPass * createReassociatePass()
Pass * createArgumentPromotionPass(unsigned maxElements=3)
createArgumentPromotionPass - This pass promotes "by reference" arguments to be passed by value if th...
FunctionPass * createAggressiveInstCombinerPass()
static cl::opt< bool > EnablePrepareForThinLTO("prepare-for-thinlto", cl::init(false), cl::Hidden, cl::desc("Enable preparation for ThinLTO."))
FunctionPass * createSCCPPass()
ModulePass * createInstrOrderFilePass()
static cl::opt< bool > EnableMatrix("enable-matrix", cl::init(false), cl::Hidden, cl::desc("Enable lowering of the matrix intrinsics"))
std::function< void(const PassManagerBuilder &Builder, legacy::PassManagerBase &PM)> ExtensionFn
Extensions are passed to the builder itself (so they can see how it is configured) as well as the pas...
unsigned OptLevel
The Optimization Level - Specify the basic optimization level.
static cl::opt< bool > UseGVNAfterVectorization("use-gvn-after-vectorization", cl::init(false), cl::Hidden, cl::desc("Run GVN instead of Early CSE after vectorization passes"))
void populateModulePassManager(legacy::PassManagerBase &MPM)
populateModulePassManager - This sets up the primary pass manager.
static cl::opt< bool > DisablePreInliner("disable-preinline", cl::init(false), cl::Hidden, cl::desc("Disable pre-instrumentation inliner"))
ModulePass * createCalledValuePropagationPass()
createCalledValuePropagationPass - Attach metadata to indirct call sites indicating the set of functi...
void add(Pass *P) override
Add a pass to the queue of passes to run.
FunctionPass * createInstSimplifyLegacyPass()
Create a legacy pass that does instruction simplification on each instruction in a function...
Pass * createLoopInstSimplifyPass()
ModulePass * createSampleProfileLoaderPass()
FunctionPass * createInstructionCombiningPass(bool ExpensiveCombines=true)
ModulePass * createGlobalDCEPass()
createGlobalDCEPass - This transform is designed to eliminate unreachable internal globals (functions...
static cl::opt< bool > EnableUnrollAndJam("enable-unroll-and-jam", cl::init(false), cl::Hidden, cl::desc("Enable Unroll And Jam Pass"))
Pass * createLoopUnrollAndJamPass(int OptLevel=2)
Pass * createCorrelatedValuePropagationPass()
cl::opt< bool > RunSLPVectorization
This is the interface for LLVM's unification-based alias analysis implemented with CFL graph reachabi...
initializer< Ty > init(const Ty &Val)
This is the interface for a metadata-based TBAA.
FunctionPass * createTailCallEliminationPass()
This file provides the interface for LLVM's Global Value Numbering pass which eliminates fully redund...
ValuesClass values(OptsTy... Options)
Helper to build a ValuesClass by forwarding a variable number of arguments as an initializer list to ...
FunctionPass * createPromoteMemoryToRegisterPass()
ModulePass * createDeadArgEliminationPass()
createDeadArgEliminationPass - This pass removes arguments from functions which are not used by the b...
FunctionPass * createDivRemPairsPass()
FunctionPass * createDeadStoreEliminationPass()
cl::opt< unsigned > SetLicmMssaOptCap
ModulePass * createLowerTypeTestsPass(ModuleSummaryIndex *ExportSummary, const ModuleSummaryIndex *ImportSummary)
This pass lowers type metadata and the llvm.type.test intrinsic to bitsets.
ModulePass * createBarrierNoopPass()
createBarrierNoopPass - This pass is purely a module pass barrier in a pass manager.
FunctionPass * createMemCpyOptPass()
The public interface to this file...
FunctionPass * createBitTrackingDCEPass()
ModulePass * createConstantMergePass()
createConstantMergePass - This function returns a new pass that merges duplicate global constants tog...
Pass * createLoopSinkPass()
ModulePass * createGlobalOptimizerPass()
createGlobalOptimizerPass - This function returns a new pass that optimizes non-address taken interna...
auto find_if(R &&Range, UnaryPredicate P) -> decltype(adl_begin(Range))
Provide wrappers to std::find_if which take ranges instead of having to pass begin/end explicitly...
Pass * createReversePostOrderFunctionAttrsPass()
createReversePostOrderFunctionAttrsPass - This pass walks SCCs of the call graph in RPO to deduce and...
void populateFunctionPassManager(legacy::FunctionPassManager &FPM)
populateFunctionPassManager - This fills in the function pass manager, which is expected to be run on...
Pass * createWarnMissedTransformationsPass()
FunctionPassManager manages FunctionPasses.
Pass * createPostOrderFunctionAttrsLegacyPass()
Create a legacy pass manager instance of a pass to compute function attrs in post-order.
std::string InstrProfileOutput
Pass * createLoopVersioningLICMPass()
ModulePass * createGlobalSplitPass()
This pass splits globals into pieces for the benefit of whole-program devirtualization and control-fl...
static cl::opt< bool > EnableLoopInterchange("enable-loopinterchange", cl::init(false), cl::Hidden, cl::desc("Enable the new, experimental LoopInterchange Pass"))
cl::opt< bool > EnableHotColdSplit("hot-cold-split", cl::init(false), cl::Hidden, cl::desc("Enable hot-cold splitting pass"))
Pass * createLoopInterchangePass()
PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
FunctionPass * createLoopLoadEliminationPass()
FunctionPass * createLowerConstantIntrinsicsPass()
Pass * createSimpleLoopUnswitchLegacyPass(bool NonTrivial=false)
Create the legacy pass object for the simple loop unswitcher.
static cl::opt< CFLAAType > UseCFLAA("use-cfl-aa", cl::init(CFLAAType::None), cl::Hidden, cl::desc("Enable the new, experimental CFL alias analysis"), cl::values(clEnumValN(CFLAAType::None, "none", "Disable CFL-AA"), clEnumValN(CFLAAType::Steensgaard, "steens", "Enable unification-based CFL-AA"), clEnumValN(CFLAAType::Andersen, "anders", "Enable inclusion-based CFL-AA"), clEnumValN(CFLAAType::Both, "both", "Enable both variants of CFL-AA")))
Pass * createLoopSimplifyCFGPass()
FunctionPass * createSpeculativeExecutionIfHasBranchDivergencePass()
FunctionPass * createLibCallsShrinkWrapPass()
struct LLVMOpaquePassManager * LLVMPassManagerRef
ModulePass * createPGOInstrumentationUseLegacyPass(StringRef Filename=StringRef(""), bool IsCS=false)
Pass * createLoopDeletionPass()
Pass * createLoopUnswitchPass(bool OptimizeForSize=false, bool hasBranchDivergence=false)
Options for the frontend instrumentation based profiling pass.
static cl::opt< unsigned > Threshold("loop-unswitch-threshold", cl::desc("Max loop size to unswitch"), cl::init(100), cl::Hidden)
static cl::opt< bool > EnableGVNSink("enable-gvn-sink", cl::init(false), cl::Hidden, cl::desc("Enable the GVN sinking pass (default = off)"))
Pass * createLoopIdiomPass()
#define clEnumValN(ENUMVAL, FLAGNAME, DESC)
ModulePass * createWholeProgramDevirtPass(ModuleSummaryIndex *ExportSummary, const ModuleSummaryIndex *ImportSummary)
This pass implements whole-program devirtualization using type metadata.
Interfaces for passes which infer implicit function attributes from the name and signature of functio...
static ManagedStatic< SmallVector< std::tuple< PassManagerBuilder::ExtensionPointTy, PassManagerBuilder::ExtensionFn, PassManagerBuilder::GlobalExtensionID >, 8 > > GlobalExtensions
Set of global extensions, automatically added as part of the standard set.
cl::opt< unsigned > SetLicmMssaNoAccForPromotionCap
LLVMAttributeRef wrap(Attribute Attr)
ModulePass * createHotColdSplittingPass()
createHotColdSplittingPass - This pass outlines cold blocks into a separate function(s).
Pass * createAttributorLegacyPass()
unsigned SizeLevel
SizeLevel - How much we're optimizing for size.
static cl::opt< bool > DisableLibCallsShrinkWrap("disable-libcalls-shrinkwrap", cl::init(false), cl::Hidden, cl::desc("Disable shrink-wrap library calls"))
static void removeGlobalExtension(GlobalExtensionID ExtensionID)
Removes an extension that was previously added using addGlobalExtension.
FunctionPass * createGVNSinkPass()
ModulePass * createGlobalsAAWrapperPass()
FunctionPass * createSROAPass()
Pass * createInferFunctionAttrsLegacyPass()
Create a legacy pass manager instance of a pass to infer function attributes.
static bool GlobalExtensionsNotEmpty()
Check if GlobalExtensions is constructed and not empty.
Provides passes for computing function attributes based on interprocedural analyses.
ImmutablePass * createCFLSteensAAWrapperPass()
ImmutablePass * createTypeBasedAAWrapperPass()
static PassManagerBuilder::GlobalExtensionID GlobalExtensionsCounter
Pass * createLoopUnrollPass(int OptLevel=2, bool OnlyWhenForced=false, bool ForgetAllSCEV=false, int Threshold=-1, int Count=-1, int AllowPartial=-1, int Runtime=-1, int UpperBound=-1, int AllowPeeling=-1)
Pass * createSLPVectorizerPass()
cl::opt< bool > EnableLoopVectorization
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static cl::opt< bool > EnableCHR("enable-chr", cl::init(true), cl::Hidden, cl::desc("Enable control height reduction optimization (CHR)"))
Pass * createFunctionInliningPass()
createFunctionInliningPass - Return a new pass object that uses a heuristic to inline direct function...
Pass * createPruneEHPass()
createPruneEHPass - Return a new pass object which transforms invoke instructions into calls...
LLVM Value Representation.
Pass * createLowerMatrixIntrinsicsPass()
FunctionPass * createEarlyCSEPass(bool UseMemorySSA=false)
static cl::opt< int > PreInlineThreshold("preinline-threshold", cl::Hidden, cl::init(75), cl::ZeroOrMore, cl::desc("Control the amount of inlining in pre-instrumentation inliner " "(default = 75)"))
FunctionPass * createNewGVNPass()
This is the interface for LLVM's primary stateless and local alias analysis.
static cl::opt< bool > RunPartialInlining("enable-partial-inlining", cl::init(false), cl::Hidden, cl::ZeroOrMore, cl::desc("Run Partial inlinining pass"))
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
FunctionPass * createControlHeightReductionLegacyPass()
static cl::opt< bool > EnablePerformThinLTO("perform-thinlto", cl::init(false), cl::Hidden, cl::desc("Enable performing ThinLTO."))
static cl::opt< bool > EnableSimpleLoopUnswitch("enable-simple-loop-unswitch", cl::init(false), cl::Hidden, cl::desc("Enable the simple loop unswitch pass. Also enables independent " "cleanup passes integrated into the loop pass manager pipeline."))
ImmutablePass * createCFLAndersAAWrapperPass()
void addExtension(ExtensionPointTy Ty, ExtensionFn Fn)
FunctionPass * createEntryExitInstrumenterPass()
ModulePass * createPGOIndirectCallPromotionLegacyPass(bool InLTO=false, bool SamplePGO=false)
Pass * createForceFunctionAttrsLegacyPass()
Create a legacy pass manager instance of a pass to force function attrs.
Pass * createLoopRotatePass(int MaxHeaderSize=-1)
Pass * createIndVarSimplifyPass()
FunctionPass * createGVNPass(bool NoMemDepAnalysis=false)
Create a legacy GVN pass.
FunctionPass * createAggressiveDCEPass()
int DefaultThreshold
The default threshold to start with for a callee.
FunctionPass * createLoopDistributePass()
FunctionPass * createLowerExpectIntrinsicPass()
static cl::opt< bool > RunLoopRerolling("reroll-loops", cl::Hidden, cl::desc("Run the loop rerolling pass"))
static cl::opt< bool > RunNewGVN("enable-newgvn", cl::init(false), cl::Hidden, cl::desc("Run the NewGVN pass"))
FunctionPass * createCallSiteSplittingPass()