Skip to content

Commit 98d2d5d

Browse files
authored
Merge pull request #23338 from slavapestov/disable-prespecialization
Completely disable using prespecializations from SwiftOnoneSupport
2 parents de75829 + 176d99c commit 98d2d5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,8 @@ static const char *const KnownPrespecializations[] = {
25272527
};
25282528

25292529
bool swift::isKnownPrespecialization(StringRef SpecName) {
2530+
// Completely disable for now.
2531+
#if false
25302532
// TODO: Once there is an efficient API to check if
25312533
// a given symbol is a specialization of a specific type,
25322534
// use it instead. Doing demangling just for this check
@@ -2577,6 +2579,7 @@ bool swift::isKnownPrespecialization(StringRef SpecName) {
25772579
}
25782580
}
25792581

2582+
#endif
25802583
return false;
25812584
}
25822585

test/SILOptimizer/prespecialize.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// RUN: %target-swift-frontend %s -Onone -Xllvm -sil-inline-generics=false -emit-sil | %FileCheck %s
22

3+
// This is disabled for now.
4+
// REQUIRES: rdar48924409
5+
36
// REQUIRES: optimized_stdlib
47

58
// Check that pre-specialization works at -Onone.

0 commit comments

Comments
 (0)