[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:
Nikita Popov 2023-04-21 12:55:12 +02:00
parent 11eb8d88d8
commit 384a8dd10e

View File

@ -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());