[AnnotationRemarks] Also generate annotation remarks when using -O0.
authorFlorian Hahn <flo@fhahn.com>
Tue, 15 Dec 2020 14:44:38 +0000 (14:44 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 15 Dec 2020 14:46:52 +0000 (14:46 +0000)
commit7ea3932ab1def0f5e86ac745bef0d3de09e8845f
tree452b2f3b3fd227819d335c39c117e12ae89a6267
parent697226550e369e7e736411508d7d2589a2aff764
[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.
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Other/opt-O0-pipeline.ll