Skip to content

Commit

Permalink
Merge pull request #23338 from slavapestov/disable-prespecialization
Browse files Browse the repository at this point in the history
Completely disable using prespecializations from SwiftOnoneSupport
  • Loading branch information
slavapestov authored Mar 15, 2019
2 parents de75829 + 176d99c commit 98d2d5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/SILOptimizer/Utils/Generics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,8 @@ static const char *const KnownPrespecializations[] = {
};

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

#endif
return false;
}

Expand Down
3 changes: 3 additions & 0 deletions test/SILOptimizer/prespecialize.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// RUN: %target-swift-frontend %s -Onone -Xllvm -sil-inline-generics=false -emit-sil | %FileCheck %s

// This is disabled for now.
// REQUIRES: rdar48924409

// REQUIRES: optimized_stdlib

// Check that pre-specialization works at -Onone.
Expand Down

0 comments on commit 98d2d5d

Please sign in to comment.