Revert "Revert "[ParseableInterfaces] Stop explicitly optimizing cached modules""

This re-disables explicit optimization of cached modules.

rdar://46358840
This commit is contained in:
Harlan Haskins
2019-04-10 15:30:27 -07:00
parent f3b9b843c7
commit 0999bfed74
3 changed files with 17 additions and 5 deletions

View File

@@ -537,10 +537,6 @@ public:
return;
}
// Optimize emitted modules. This has to happen after we parse arguments,
// because parseSILOpts would override the current optimization mode.
subInvocation.getSILOptions().OptMode = OptimizationMode::ForSpeed;
// Build the .swiftmodule; this is a _very_ abridged version of the logic
// in performCompile in libFrontendTool, specialized, to just the one
// module-serialization task we're trying to do here.