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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue