mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 03:36:06 +00:00
[Pipelines] Don't request BFI in LICM-only loop pass adaptors
LICM doesn't use BFI anymore, so requesting BFI in these loop pass adaptors is just a waste of compile-time.
This commit is contained in:
parent
11eb8d88d8
commit
384a8dd10e
@ -708,7 +708,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
|
||||
FPM.addPass(createFunctionToLoopPassAdaptor(
|
||||
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
|
||||
/*AllowSpeculation=*/true),
|
||||
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
|
||||
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
|
||||
|
||||
FPM.addPass(CoroElidePass());
|
||||
|
||||
@ -1260,7 +1260,7 @@ void PassBuilder::addVectorPasses(OptimizationLevel Level,
|
||||
FPM.addPass(createFunctionToLoopPassAdaptor(
|
||||
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
|
||||
/*AllowSpeculation=*/true),
|
||||
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
|
||||
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
|
||||
}
|
||||
|
||||
// Now that we've vectorized and unrolled loops, we may have more refined
|
||||
@ -1816,7 +1816,7 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
|
||||
MainFPM.addPass(createFunctionToLoopPassAdaptor(
|
||||
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
|
||||
/*AllowSpeculation=*/true),
|
||||
/*USeMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
|
||||
/*USeMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
|
||||
|
||||
if (RunNewGVN)
|
||||
MainFPM.addPass(NewGVNPass());
|
||||
|
Loading…
x
Reference in New Issue
Block a user