Skip to content

Commit b892e6b

Browse files
authored
Merge pull request #19930 from rudkx/extend-operator-designated-type
[ConstraintSystem] Add a new stat to be used for expression type chec…
2 parents 29c02d5 + 72ba110 commit b892e6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+78
-70
lines changed

include/swift/Basic/Statistic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

include/swift/Basic/Statistics.def

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -158,6 +158,15 @@ FRONTEND_STATISTIC(Sema, NumConformancesDeserialized)
158158
/// expression typechecker did".
159159
FRONTEND_STATISTIC(Sema, NumConstraintScopes)
160160

161+
/// Number of constraint-solving scopes that were created but which
162+
/// did not themselves lead to the creation of further scopes, either
163+
/// because we successfully found a solution, or some constraint failed.
164+
///
165+
/// Note: This can vary based on the number of connected components we
166+
/// generate, since each connected component will itself have at least
167+
/// one leaf scope.
168+
FRONTEND_STATISTIC(Sema, NumLeafScopes)
169+
161170
/// Number of constraints considered per attempt to
162171
/// contract constraint graph edges.
163172
/// This is a measure of complexity of the contraction algorithm.

lib/Sema/CSSolver.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,6 @@ bool ConstraintSystem::solve(Expr *const expr,
12441244
auto &log = getASTContext().TypeCheckerDebug->getStream();
12451245
log << "---Solver statistics---\n";
12461246
log << "Total number of scopes explored: " << solverState->NumStatesExplored << "\n";
1247-
log << "Number of leaf scopes explored: " << solverState->leafScopes << "\n";
12481247
log << "Maximum depth reached while exploring solutions: " << solverState->maxDepth << "\n";
12491248
if (Timer) {
12501249
auto timeInMillis =

lib/Sema/CSStep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ class ComponentStep final : public SolverStep {
395395

396396
ComponentScope = llvm::make_unique<Scope>(*this);
397397
// If this component has oprhaned constraint attached,
398-
// let's return it ot the graph.
398+
// let's return it to the graph.
399399
CS.CG.setOrphanedConstraint(OrphanedConstraint);
400400
}
401401
};

lib/Sema/ConstraintSystem.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,17 @@ ConstraintSystem::~ConstraintSystem() {
8383
}
8484

8585
void ConstraintSystem::incrementScopeCounter() {
86-
SWIFT_FUNC_STAT;
8786
CountScopes++;
8887
// FIXME: (transitional) increment the redundant "always-on" counter.
8988
if (TC.Context.Stats)
9089
TC.Context.Stats->getFrontendCounters().NumConstraintScopes++;
9190
}
9291

92+
void ConstraintSystem::incrementLeafScopes() {
93+
if (TC.Context.Stats)
94+
TC.Context.Stats->getFrontendCounters().NumLeafScopes++;
95+
}
96+
9397
bool ConstraintSystem::hasFreeTypeVariables() {
9498
// Look for any free type variables.
9599
for (auto tv : TypeVariables) {

lib/Sema/ConstraintSystem.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,12 +1166,6 @@ class ConstraintSystem {
11661166
/// \brief Maximum depth reached so far in exploring solutions.
11671167
unsigned maxDepth = 0;
11681168

1169-
/// \brief Count of the number of leaf scopes we've created. These
1170-
/// either result in a failure to solve, or in a solution, unlike
1171-
/// all the intermediate scopes. They are interesting to track as
1172-
/// part of a metric of whether an expression is too complex.
1173-
unsigned leafScopes = 0;
1174-
11751169
/// \brief Whether to record failures or not.
11761170
bool recordFixes = false;
11771171

@@ -1268,7 +1262,7 @@ class ConstraintSystem {
12681262

12691263
unsigned countScopesExplored = NumStatesExplored - scope->scopeNumber;
12701264
if (countScopesExplored == 1)
1271-
++leafScopes;
1265+
CS.incrementLeafScopes();
12721266

12731267
SolverScope *savedScope;
12741268
// The position of last retired constraint before given scope.
@@ -1438,6 +1432,7 @@ class ConstraintSystem {
14381432
}
14391433

14401434
void incrementScopeCounter();
1435+
void incrementLeafScopes();
14411436

14421437
public:
14431438
/// \brief Introduces a new solver scope, which any changes to the
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %scale-test --begin 1 --end 20 --step 1 --select NumLeafScopes %s
2+
// REQUIRES: OS=macosx
3+
// REQUIRES: asserts
4+
5+
let a = [
6+
%for i in range(0, N):
7+
(1, 1),
8+
%end
9+
]

validation-test/Sema/type_checker_perf/fast/more_specialized_generic_func.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 8 --end 40 --step 2 --select incrementScopeCounter %s --expected-exit-code 0
1+
// RUN: %scale-test --begin 8 --end 40 --step 2 --select NumLeafScopes %s --expected-exit-code 0
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar18360240.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 10 --step 2 --select incrementScopeCounter --polynomial-threshold 1.5 %s
1+
// RUN: %scale-test --begin 2 --end 10 --step 2 --select NumConstraintScopes --polynomial-threshold 1.5 %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar18699199.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
public enum E

validation-test/Sema/type_checker_perf/fast/rdar18724501.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar19181998.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 30 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 30 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar19181998_nominals.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 30 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 30 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar19394804.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar19738292.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 7 --end 12 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 7 --end 12 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
// REQUIRES: rdar42650365

validation-test/Sema/type_checker_perf/fast/rdar19777895.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 3 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 3 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar19915443.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 7 --end 15 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 7 --end 15 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
let a = [0]

validation-test/Sema/type_checker_perf/fast/rdar20233198_any.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar20233198_explicit_overloads.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar20233198_named.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar20233198_typed.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar20233198_weak.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s -Xfrontend=-verify
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-verify
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar21070413.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar21328584.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar21720888.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar21930551.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar22532650.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 10 --end 15 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 10 --end 15 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar22626740.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar22810685.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar22836718.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 5 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 5 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar23327871.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 8 --end 16 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 8 --end 16 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// RUN: %scale-test --begin 2 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 10 --step 1 --select NumConstraintScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

5-
func f() {
6-
% for i in range(N):
7-
let collection${i} = [String]()
8-
% end
9-
5+
func f(
6+
%for i in range(N):
7+
collection${i}: [String],
8+
%end
9+
collection${N+1}: [String]
10+
) {
1011
_ = ${' + '.join("collection%s" % i for i in range(N))}
1112
}

validation-test/Sema/type_checker_perf/fast/rdar26939465.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar29025667.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar30213053.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 3 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 3 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar30389602.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar30729643.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 15 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 15 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar31563957.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar32999041.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 3 --end 8 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 3 --end 8 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
// FIXME: https://bugs.swift.org/browse/SR-6997

validation-test/Sema/type_checker_perf/fast/rdar33292740.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 2 --end 10 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 2 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/fast/rdar40344044.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 3 --end 20 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --begin 3 --end 20 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/array_of_tuples.swift.gyb

Lines changed: 0 additions & 9 deletions
This file was deleted.

validation-test/Sema/type_checker_perf/slow/nil_coalescing.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
// REQUIRES: rdar38963783

validation-test/Sema/type_checker_perf/slow/rdar20818064.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar20959612.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 3 --end 7 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 3 --end 7 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar21198787.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 1 --end 10 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar24543332.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 5 --end 20 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar27585838.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s --polynomial-threshold=1.7
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s --polynomial-threshold=1.7
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar30596744_1.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s --expected-exit-code 1
1+
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar30596744_2.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select incrementScopeCounter %s --expected-exit-code 1
1+
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar30606089.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s --polynomial-threshold 1.7
1+
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s --polynomial-threshold 1.7
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

validation-test/Sema/type_checker_perf/slow/rdar33289839.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %scale-test --invert-result --begin 2 --end 6 --step 1 --select incrementScopeCounter %s
1+
// RUN: %scale-test --invert-result --begin 2 --end 6 --step 1 --select NumLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44
// REQUIRES: rdar42969824

0 commit comments

Comments
 (0)