File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -767,6 +767,7 @@ static void addLateLoopOptPassPipeline(SILPassPipelinePlan &P) {
767
767
// - don't require IRGen information.
768
768
static void addLastChanceOptPassPipeline (SILPassPipelinePlan &P) {
769
769
// Optimize access markers for improved IRGen after all other optimizations.
770
+ P.addOptimizeHopToExecutor ();
770
771
P.addAccessEnforcementReleaseSinking ();
771
772
P.addAccessEnforcementOpts ();
772
773
P.addAccessEnforcementWMO ();
Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ struct Runner {
376
376
377
377
await withExclusiveAccessAsync ( to: & global) {
378
378
@MyMainActorWithAccessInUnownedExecAccessor ( x: inout Int ) async -> Void in
379
+ print ( " do something to avoid optimizing away to executor switch " )
379
380
debugLog ( " ==> Making sure can push/pop access " )
380
381
}
381
382
// In order to test that we properly hand off the access, we
You can’t perform that action at this time.
0 commit comments