@@ -205,10 +205,6 @@ static cl::opt<bool>
205205 EnableLoopInterchange (" enable-loopinterchange" , cl::init(false ), cl::Hidden,
206206 cl::desc(" Enable the LoopInterchange Pass" ));
207207
208- static cl::opt<bool > EnableLoopFusion (" enable-loopfusion" , cl::init(false ),
209- cl::Hidden,
210- cl::desc(" Enable the LoopFuse Pass" ));
211-
212208static cl::opt<bool > EnableUnrollAndJam (" enable-unroll-and-jam" ,
213209 cl::init (false ), cl::Hidden,
214210 cl::desc(" Enable Unroll And Jam Pass" ));
@@ -318,7 +314,6 @@ PipelineTuningOptions::PipelineTuningOptions() {
318314 SLPVectorization = false ;
319315 LoopUnrolling = true ;
320316 LoopInterchange = EnableLoopInterchange;
321- LoopFusion = EnableLoopFusion;
322317 ForgetAllSCEVInLoopUnroll = ForgetSCEVInLoopUnroll;
323318 LicmMssaOptCap = SetLicmMssaOptCap;
324319 LicmMssaNoAccForPromotionCap = SetLicmMssaNoAccForPromotionCap;
@@ -1559,7 +1554,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
15591554
15601555 // FIXME: This may not be the right place in the pipeline.
15611556 // We need to have the data to support the right place.
1562- if (PTO.LoopFusion || EnableLoopFusion )
1557+ if (PTO.LoopFusion )
15631558 OptimizePM.addPass (LoopFusePass ());
15641559
15651560 // Distribute loops to allow partial vectorization. I.e. isolate dependences
0 commit comments