mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #84888 from eeckstein/remove-access-path-verification
Optimizer: don't run AccessPathVerification
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user