Skip to content

Commit 79960d4

Browse files
authored
Merge pull request #84888 from eeckstein/remove-access-path-verification
Optimizer: don't run AccessPathVerification
2 parents b6dda90 + 7dc4952 commit 79960d4

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,6 @@ static void addPerfDebugSerializationPipeline(SILPassPipelinePlan &P) {
643643
static void addPrepareOptimizationsPipeline(SILPassPipelinePlan &P) {
644644
P.startPipeline("PrepareOptimizationPasses");
645645

646-
// Verify AccessStorage once in OSSA before optimizing.
647-
#ifndef NDEBUG
648-
P.addAccessPathVerification();
649-
#endif
650-
651646
P.addForEachLoopUnroll();
652647
P.addSimplification();
653648
P.addAccessMarkerElimination();
@@ -896,14 +891,6 @@ static void addLastChanceOptPassPipeline(SILPassPipelinePlan &P) {
896891
// A loop might have only one dynamic access now, i.e. hoistable
897892
P.addLoopInvariantCodeMotion();
898893

899-
// Verify AccessStorage once again after optimizing and lowering OSSA.
900-
#ifndef NDEBUG
901-
// Temporarily disabled because it triggers a false alarm when building
902-
// SwiftDocC on linux: rdar://141270464
903-
// TODO: re-enable when the problem is fixed.
904-
// P.addAccessPathVerification();
905-
#endif
906-
907894
// Only has an effect if the -assume-single-thread option is specified.
908895
if (P.getOptions().AssumeSingleThreaded) {
909896
P.addAssumeSingleThreaded();

validation-test/SILOptimizer/large_string_array.swift.gyb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// https://github.com/apple/swift/issues/56816
55
// UNSUPPORTED: OS=linux-gnu
66

7-
// REQUIRES: rdar162433770
8-
97
// The compiler should finish in less than 1 minute. To give some slack,
108
// specify a timeout of 5 minutes.
119
// If the compiler needs more than 5 minutes, there is probably a real problem.

0 commit comments

Comments
 (0)