Skip to content

Commit 384a8dd

Browse files
committed
[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.
1 parent 11eb8d8 commit 384a8dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
708708
FPM.addPass(createFunctionToLoopPassAdaptor(
709709
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
710710
/*AllowSpeculation=*/true),
711-
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
711+
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
712712

713713
FPM.addPass(CoroElidePass());
714714

@@ -1260,7 +1260,7 @@ void PassBuilder::addVectorPasses(OptimizationLevel Level,
12601260
FPM.addPass(createFunctionToLoopPassAdaptor(
12611261
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
12621262
/*AllowSpeculation=*/true),
1263-
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
1263+
/*UseMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
12641264
}
12651265

12661266
// Now that we've vectorized and unrolled loops, we may have more refined
@@ -1816,7 +1816,7 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
18161816
MainFPM.addPass(createFunctionToLoopPassAdaptor(
18171817
LICMPass(PTO.LicmMssaOptCap, PTO.LicmMssaNoAccForPromotionCap,
18181818
/*AllowSpeculation=*/true),
1819-
/*USeMemorySSA=*/true, /*UseBlockFrequencyInfo=*/true));
1819+
/*USeMemorySSA=*/true, /*UseBlockFrequencyInfo=*/false));
18201820

18211821
if (RunNewGVN)
18221822
MainFPM.addPass(NewGVNPass());

0 commit comments

Comments
 (0)