llvm.org GIT mirror llvm / dcf64df
[ThinLTO] Ensure sanitizer passes are run Summary: In ThinLTO compilation, we exit populateModulePassManager early and were not adding PM extension passes meant to run at the end of the pipeline. This includes sanitizer passes. Add these passes before the early exit. A test will be added to projects/compiler-rt. Reviewers: pcc Subscribers: mehdi_amini, inglorion, llvm-commits Differential Revision: https://reviews.llvm.org/D39565 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317714 91177308-0d34-0410-b5e6-96231b3b80d8 Teresa Johnson 2 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
547547 // unrolling/vectorization/... now. We'll first run the inliner + CGSCC passes
548548 // during ThinLTO and perform the rest of the optimizations afterward.
549549 if (PrepareForThinLTO) {
550 // Ensure we perform any last passes, but do so before renaming anonymous
551 // globals in case the passes add any.
552 addExtensionsToPM(EP_OptimizerLast, MPM);
550553 // Rename anon globals to be able to export them in the summary.
551554 MPM.add(createNameAnonGlobalPass());
552555 return;