rust/src/librustc_codegen_llvm/back
Nikita Popov a5c3956a75 Don't add extra passes into the function pass manager
Exception for specific cases like linting, additional passes should
be going into the module pass manager (even if they are function
passes). The separate function pass manager is only used for very
early optimization passes.

Rather than apparending passes to the MPM, use the OptimizerLast
and EnabledOnOptLevel0 pass manager builder extension hooks, which
allow adding passes directly before finalization (alias
canonicalization and name-anon-globals).

The main effect and purpose of this change is to add sanitizer
passes at the end of the pipeline, which is where they belong.
In LLVM 9 the address sanitizer can't be used as a pass in the
early function pass manager, because it has a dependence on a
module-level analysis pass.
2019-07-15 09:45:14 +02:00
..
archive.rs Rollup merge of #62286 - petrhosek:rustc-no-duplicate-archives, r=cramertj 2019-07-07 17:00:20 +02:00
bytecode.rs Move some filename constants to cg_ssa 2019-04-20 13:21:40 +02:00
lto.rs Remove unnecessary .clone() 2019-06-15 20:46:00 +09:00
write.rs Don't add extra passes into the function pass manager 2019-07-15 09:45:14 +02:00