File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -219,24 +219,24 @@ void AddSSAPasses(SILPassManager &PM, OptimizationLevelKind OpLevel) {
219
219
// Promote stack allocations to values and eliminate redundant
220
220
// loads.
221
221
PM.addMem2Reg ();
222
- PM.addRedundantLoadElimination ();
222
+ PM.addPerformanceConstantPropagation ();
223
223
// Do a round of CFG simplification, followed by peepholes, then
224
224
// more CFG simplification.
225
- AddSimplifyCFGSILCombine (PM);
226
225
227
- PM.addPerformanceConstantPropagation ();
228
- PM.addCSE ();
229
- PM.addSILCombine ();
230
- PM.addJumpThreadSimplifyCFG ();
231
- // Jump threading can expose opportunity for silcombine (enum -> is_enum_tag->
226
+ // Jump threading can expose opportunity for SILCombine (enum -> is_enum_tag->
232
227
// cond_br).
228
+ PM.addJumpThreadSimplifyCFG ();
233
229
PM.addSILCombine ();
234
- // Which can expose opportunity for simplifcfg .
230
+ // SILCombine can expose further opportunities for SimplifyCFG .
235
231
PM.addSimplifyCFG ();
236
232
233
+ PM.addCSE ();
234
+ PM.addRedundantLoadElimination ();
235
+
237
236
// Perform retain/release code motion and run the first ARC optimizer.
238
237
PM.addCSE ();
239
238
PM.addDCE ();
239
+
240
240
PM.addEarlyCodeMotion ();
241
241
PM.addARCSequenceOpts ();
242
242
You can’t perform that action at this time.
0 commit comments