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 @@ -793,6 +793,7 @@ static void addLateLoopOptPassPipeline(SILPassPipelinePlan &P) {
793793// - don't require IRGen information.
794794static void addLastChanceOptPassPipeline (SILPassPipelinePlan &P) {
795795 // Optimize access markers for improved IRGen after all other optimizations.
796+ P.addOptimizeHopToExecutor ();
796797 P.addAccessEnforcementReleaseSinking ();
797798 P.addAccessEnforcementOpts ();
798799 P.addAccessEnforcementWMO ();
Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ struct Runner {
376376
377377 await withExclusiveAccessAsync ( to: & global) {
378378 @MyMainActorWithAccessInUnownedExecAccessor ( x: inout Int ) async -> Void in
379+ print ( " do something to avoid optimizing away to executor switch " )
379380 debugLog ( " ==> Making sure can push/pop access " )
380381 }
381382 // In order to test that we properly hand off the access, we
You can’t perform that action at this time.
0 commit comments