Skip to content

Commit 466d000

Browse files
authored
Merge pull request #6664 from slavapestov/scale-tests-fixes
Scale tests fixes
2 parents 891dc3e + 8d46ec4 commit 466d000

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,18 @@ using namespace constraints;
2828
// Constraint solver statistics
2929
//===----------------------------------------------------------------------===//
3030
#define DEBUG_TYPE "Constraint solver overall"
31-
#define JOIN(X,Y) JOIN2(X,Y)
3231
#define JOIN2(X,Y) X##Y
3332
STATISTIC(NumSolutionAttempts, "# of solution attempts");
3433
STATISTIC(TotalNumTypeVariables, "# of type variables created");
3534

3635
#define CS_STATISTIC(Name, Description) \
37-
STATISTIC(JOIN2(Overall,Name), Description);
36+
STATISTIC(Overall##Name, Description);
3837
#include "ConstraintSolverStats.def"
3938

4039
#undef DEBUG_TYPE
4140
#define DEBUG_TYPE "Constraint solver largest system"
4241
#define CS_STATISTIC(Name, Description) \
43-
STATISTIC(JOIN2(Largest,Name), Description);
42+
STATISTIC(Largest##Name, Description);
4443
#include "ConstraintSolverStats.def"
4544
STATISTIC(LargestSolutionAttemptNumber, "# of the largest solution attempt");
4645

utils/scale-test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def run_once_with_primary(args, ast, rng, primary_idx):
6868

6969
mode = "-c"
7070
if args.typecheck:
71-
mode = "-typechec"
71+
mode = "-typecheck"
7272

7373
focus = ["-primary-file", primary]
7474
if args.whole_module_optimization:

validation-test/compiler_scale/callee_analysis_invalidation.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %scale-test -O --threshold 0.2 --begin 20 --end 25 --step 1 --select computeMethodCallees %s
2-
// REQUIRES: OS=macosx, tools-release, assertions
2+
// REQUIRES: OS=macosx
33

44
class C0<T:Integer> {
55
func foo() {

validation-test/compiler_scale/scale_neighbouring_getset.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %scale-test --sum-multi --typecheck --begin 5 --end 16 --step 5 --select typeCheckAbstractFunctionBody %s
2-
// REQUIRES: OS=macosx, tools-release, assertions
2+
// REQUIRES: OS=macosx
33

44
struct Struct${N} {
55
% if int(N) > 1:

0 commit comments

Comments
 (0)