[Exclusivity] Allow testing the -Onone pipeline with access markers.

Markers are always eliminated before -O passes.

At -Onone, markers can be enabled via command line for all -Onone passes.
This commit is contained in:
Andrew Trick
2017-04-26 01:26:43 -07:00
parent 087a1a956e
commit e8b0947897
11 changed files with 99 additions and 70 deletions

View File

@@ -671,6 +671,9 @@ static bool performCompile(std::unique_ptr<CompilerInstance> &Instance,
SharedTimer timer("SIL optimization");
if (Invocation.getSILOptions().Optimization >
SILOptions::SILOptMode::None) {
runSILOptPreparePasses(*SM);
StringRef CustomPipelinePath =
Invocation.getSILOptions().ExternalPassPipelineFilename;
if (!CustomPipelinePath.empty()) {