mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 18:57:19 +00:00
Respect -Z verify-llvm-ir and other flags that add extra passes when combined with -C no-prepopulate-passes in the new LLVM Pass Manager.
This commit is contained in:
parent
18f32b73bd
commit
84fb481bf5
@ -995,6 +995,13 @@ LLVMRustOptimizeWithNewPassManager(
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// We're not building any of the default pipelines but we still want to
|
||||
// add the verifier, instrumentation, etc passes if they were requested
|
||||
for (const auto &C : PipelineStartEPCallbacks)
|
||||
C(MPM, OptLevel);
|
||||
for (const auto &C : OptimizerLastEPCallbacks)
|
||||
C(MPM, OptLevel);
|
||||
}
|
||||
|
||||
if (ExtraPassesLen) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user