mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Allow the generic specializer to specialize transparent functions."
This reverts commit r26362, because I forgot to delete one test and update another for this change. Swift SVN r26363
This commit is contained in:
@@ -102,6 +102,12 @@ void GenericSpecializer::addApplyInst(ApplyInst *AI) {
|
||||
}
|
||||
|
||||
void GenericSpecializer::collectApplyInst(SILFunction &F) {
|
||||
// Don't collect apply inst from transparent functions since we do not want to
|
||||
// expose shared functions in the mandatory inliner. We will specialize the
|
||||
// relevant callsites after we inline.
|
||||
if (F.isTransparent())
|
||||
return;
|
||||
|
||||
// Scan all of the instructions in this function in search of ApplyInsts.
|
||||
for (auto &BB : F)
|
||||
for (auto &I : BB) {
|
||||
|
||||
Reference in New Issue
Block a user