Skip to content

Commit 551813b

Browse files
committed
fixup! add check for EnableFusion flag
1 parent 00d5ca5 commit 551813b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
15591559

15601560
// FIXME: This may not be the right place in the pipeline.
15611561
// We need to have the data to support the right place.
1562-
if (PTO.LoopFusion)
1562+
if (PTO.LoopFusion || EnableLoopFusion)
15631563
OptimizePM.addPass(LoopFusePass());
15641564

15651565
// Distribute loops to allow partial vectorization. I.e. isolate dependences

0 commit comments

Comments
 (0)