Merge pull request #84888 from eeckstein/remove-access-path-verification

Optimizer: don't run AccessPathVerification
This commit is contained in:
eeckstein
2025-10-15 13:18:35 +02:00
committed by GitHub
2 changed files with 0 additions and 15 deletions

View File

@@ -643,11 +643,6 @@ static void addPerfDebugSerializationPipeline(SILPassPipelinePlan &P) {
static void addPrepareOptimizationsPipeline(SILPassPipelinePlan &P) {
P.startPipeline("PrepareOptimizationPasses");
// Verify AccessStorage once in OSSA before optimizing.
#ifndef NDEBUG
P.addAccessPathVerification();
#endif
P.addForEachLoopUnroll();
P.addSimplification();
P.addAccessMarkerElimination();
@@ -896,14 +891,6 @@ static void addLastChanceOptPassPipeline(SILPassPipelinePlan &P) {
// A loop might have only one dynamic access now, i.e. hoistable
P.addLoopInvariantCodeMotion();
// Verify AccessStorage once again after optimizing and lowering OSSA.
#ifndef NDEBUG
// Temporarily disabled because it triggers a false alarm when building
// SwiftDocC on linux: rdar://141270464
// TODO: re-enable when the problem is fixed.
// P.addAccessPathVerification();
#endif
// Only has an effect if the -assume-single-thread option is specified.
if (P.getOptions().AssumeSingleThreaded) {
P.addAssumeSingleThreaded();

View File

@@ -4,8 +4,6 @@
// https://github.com/apple/swift/issues/56816
// UNSUPPORTED: OS=linux-gnu
// REQUIRES: rdar162433770
// The compiler should finish in less than 1 minute. To give some slack,
// specify a timeout of 5 minutes.
// If the compiler needs more than 5 minutes, there is probably a real problem.