Skip to content

Commit ae25025

Browse files
committed
change place of pass in pipeline
1 parent d1a5ac3 commit ae25025

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,6 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
644644
if (EnableConstraintElimination)
645645
FPM.addPass(ConstraintEliminationPass());
646646

647-
// FIXME: This may not be the right place in the pipeline.
648-
// We need to have the data to support the right place.
649-
if (PTO.LoopFusion)
650-
FPM.addPass(LoopFusePass());
651-
652647
// Add the primary loop simplification pipeline.
653648
// FIXME: Currently this is split into two loop pass pipelines because we run
654649
// some function passes in between them. These can and should be removed
@@ -1559,6 +1554,11 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
15591554
if (PTO.LoopInterchange)
15601555
LPM.addPass(LoopInterchangePass());
15611556

1557+
// FIXME: This may not be the right place in the pipeline.
1558+
// We need to have the data to support the right place.
1559+
if (PTO.LoopFusion)
1560+
OptimizePM.addPass(LoopFusePass());
1561+
15621562
OptimizePM.addPass(createFunctionToLoopPassAdaptor(
15631563
std::move(LPM), /*UseMemorySSA=*/false, /*UseBlockFrequencyInfo=*/false));
15641564

0 commit comments

Comments
 (0)