Skip to content

Commit cc0386b

Browse files
committed
[ConstraintSystem] Add a new stat to be used for expression type checker performance testing.
This counts the number of leaf scopes we reach while solving the constraint sytem, and is a much better measure of the growth of unnecessary work than the total number of scopes opened. There were two tests where I had a difficult time getting scale-test to fit the curve even after adjusting some of the parameters, so I've left those to use the old stat for now.
1 parent 3d6c93f commit cc0386b

Some content is hidden

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

50 files changed

+89
-65
lines changed

include/swift/Basic/Statistic.h

Lines changed: 8 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
@@ -28,6 +28,13 @@
2828
++FStat; \
2929
} while (0)
3030

31+
#define SWIFT_FUNC_STAT_INCREMENT(x) \
32+
do { \
33+
static llvm::Statistic FStat = \
34+
{DEBUG_TYPE, __func__, __func__, {0}, {false}}; \
35+
FStat += (x); \
36+
} while (0)
37+
3138
// Helper class designed to consolidate reporting of LLVM statistics and timers
3239
// across swift compilations that typically invoke many drivers, each running
3340
// many frontends. Additionally collects some cheap "always-on" statistics,

lib/Sema/CSSolver.cpp

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

lib/Sema/CSStep.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ StepResult SplitterStep::resume(bool prevFailed) {
7676
for (auto &component : Components)
7777
workList.splice(workList.end(), component);
7878

79+
// We want to compute the number of leaf scopes as if the system had
80+
// not been split, so allow each additional component after the
81+
// first to have a free leaf scope that doesn't count against the
82+
// total for the system.
83+
CS.decrementLeafScopes(Components.size() - 1);
84+
7985
// If we came back to this step and previous (one of the components)
8086
// failed, it means that we can't solve this step either.
8187
if (prevFailed)

lib/Sema/ConstraintSystem.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ void ConstraintSystem::incrementScopeCounter() {
9090
TC.Context.Stats->getFrontendCounters().NumConstraintScopes++;
9191
}
9292

93+
void ConstraintSystem::numLeafScopes(unsigned value) {
94+
// NOTE: We rely on 2's complement addition here.
95+
SWIFT_FUNC_STAT_INCREMENT(value);
96+
}
97+
98+
void ConstraintSystem::incrementLeafScopes(unsigned increment) {
99+
numLeafScopes(increment);
100+
}
101+
102+
void ConstraintSystem::decrementLeafScopes(unsigned decrement) {
103+
numLeafScopes(-decrement);
104+
}
105+
93106
bool ConstraintSystem::hasFreeTypeVariables() {
94107
// Look for any free type variables.
95108
for (auto tv : TypeVariables) {

lib/Sema/ConstraintSystem.h

Lines changed: 5 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.
@@ -1439,6 +1433,10 @@ class ConstraintSystem {
14391433

14401434
void incrementScopeCounter();
14411435

1436+
void numLeafScopes(unsigned adjustment);
1437+
void incrementLeafScopes(unsigned increment =1);
1438+
void decrementLeafScopes(unsigned decrement =1);
1439+
14421440
public:
14431441
/// \brief Introduces a new solver scope, which any changes to the
14441442
/// solver state or constraint system are temporary and will be undone when
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/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 1 --end 16 --step 1 --select numLeafScopes %s
22
// REQUIRES: OS=macosx
33
// REQUIRES: asserts
44

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
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)