File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/SILPasses/PassManager Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,6 @@ void swift::runSILOptimizationPasses(SILModule &Module) {
262
262
PM.runOneIteration ();
263
263
PM.resetAndRemoveTransformations ();
264
264
265
-
266
265
// Run two iterations of the mid-level SSA passes.
267
266
PM.setStageName (" MidLevel" );
268
267
AddSSAPasses (PM, OptimizationLevelKind::MidLevel);
@@ -337,22 +336,23 @@ void swift::runSILOptimizationPasses(SILModule &Module) {
337
336
338
337
PM.runOneIteration ();
339
338
PM.resetAndRemoveTransformations ();
340
- PM.addCodeSinking ();
341
339
342
340
PM.setStageName (" LateLoopOpt" );
343
- PM.addLICM ();
344
341
345
- // Perform the final lowering transformations .
342
+ // Delete dead code and drop the bodies of shared functions .
346
343
PM.addExternalFunctionDefinitionsElimination ();
347
344
PM.addDeadFunctionElimination ();
348
345
349
- // Optimize overflow checks:
346
+ // Perform the final lowering transformations.
347
+ PM.addCodeSinking ();
348
+ PM.addLICM ();
349
+
350
+ // Optimize overflow checks.
350
351
PM.addRedundantOverflowCheckRemoval ();
351
352
PM.addMergeCondFails ();
352
353
353
354
// Remove dead code.
354
355
PM.addDCE ();
355
- // Clean-up after DCE.
356
356
PM.addSimplifyCFG ();
357
357
PM.runOneIteration ();
358
358
You can’t perform that action at this time.
0 commit comments