Skip to content

Commit 91f56a9

Browse files
authored
Merge pull request #11967 from slavapestov/revert-sil-merge-partial-modules-again
2 parents 73e5d66 + 94be90b commit 91f56a9

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

lib/Driver/ToolChains.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -687,14 +687,6 @@ ToolChain::constructInvocation(const MergeModuleJobAction &job,
687687
// serialized ASTs.
688688
Arguments.push_back("-parse-as-library");
689689

690-
// Merge serialized SIL from partial modules.
691-
Arguments.push_back("-sil-merge-partial-modules");
692-
693-
// Disable SIL optimization passes; we've already optimized the code in each
694-
// partial mode.
695-
Arguments.push_back("-disable-diagnostic-passes");
696-
Arguments.push_back("-disable-sil-perf-optzns");
697-
698690
addCommonFrontendArgs(*this, context.OI, context.Output, context.Args,
699691
Arguments);
700692
context.Args.AddLastArg(Arguments, options::OPT_import_objc_header);

validation-test/Evolution/test_function_change_transparent_body.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
// RUN: %target-resilience-test
1+
// RUN: %target-resilience-test-wmo
22
// REQUIRES: executable_test
33

4+
// FIXME: shouldn't need -whole-module-optimization here; we need to fix the
5+
// frontend to merge serialized SIL functions from different translation units
6+
47
import StdlibUnittest
58
import function_change_transparent_body
69

0 commit comments

Comments
 (0)