[AnnotationRemarks] Also generate annotation remarks when using -O0.

The AnnotationRemarks pass is already run at the end of the module
pipeline. This patch also adds it before bailing out for -O0, so remarks
are also generated with -O0.
This commit is contained in:
Florian Hahn 2020-12-15 14:44:38 +00:00
parent 697226550e
commit 7ea3932ab1
No known key found for this signature in database
GPG Key ID: 61D7554B5CECDC0D
2 changed files with 3 additions and 0 deletions

View File

@ -569,6 +569,8 @@ void PassManagerBuilder::populateModulePassManager(
// new unnamed globals.
MPM.add(createNameAnonGlobalPass());
}
MPM.add(createAnnotationRemarksLegacyPass());
return;
}

View File

@ -25,6 +25,7 @@
; CHECK-NEXT: Inliner for always_inline functions
; A No-Op Barrier Pass
; CHECK: FunctionPass Manager
; CHECK-NEXT: Annotation Remarks
; CHECK-NEXT: Module Verifier
; CHECK-NEXT: Bitcode Writer