]> granicus.if.org Git - llvm/commit
[IRPrinting] Improve module pass printer to work better with -filter-print-funcs
authorTaewook Oh <twoh@fb.com>
Wed, 4 Sep 2019 08:08:58 +0000 (08:08 +0000)
committerTaewook Oh <twoh@fb.com>
Wed, 4 Sep 2019 08:08:58 +0000 (08:08 +0000)
commitda176cb964c58453dd364599866d987b31c502ac
tree625a333c5c3c4adc83ae770f47e3337c870c97d8
parent707116e84d47494ef9923f074c3bed77c573a2b2
[IRPrinting] Improve module pass printer to work better with -filter-print-funcs

Summary: Previously module pass printer pass prints the banner even when the module doesn't include any function provided with `-filter-print-funcs` option. This introduced a lot of noise, especailly with ThinLTO. This diff addresses the issue and makes the banner printed only when the module includes functions in `-filter-print-funcs` list.

Reviewers: fedor.sergeev

Subscribers: mehdi_amini, hiraditya, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66560

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370849 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/IRPrintingPasses.cpp
test/Other/module-pass-printer.ll [new file with mode: 0644]