mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
62e029142d
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 llvm-svn: 370849
19 lines
739 B
LLVM
19 lines
739 B
LLVM
; Check pass name is only printed once.
|
|
; RUN: opt < %s 2>&1 -forceattrs -disable-output -print-after-all | FileCheck %s
|
|
; RUN: opt < %s 2>&1 -forceattrs -disable-output -print-after-all -filter-print-funcs=foo,bar | FileCheck %s
|
|
|
|
; Check pass name is not printed if a module doesn't include any function specified in -filter-print-funcs.
|
|
; RUN: opt < %s 2>&1 -forceattrs -disable-output -print-after-all -filter-print-funcs=baz | FileCheck %s -allow-empty -check-prefix=EMPTY
|
|
|
|
; CHECK: *** IR Dump After Force set function attributes ***
|
|
; CHECK-NOT: *** IR Dump After Force set function attributes ***
|
|
; EMPTY-NOT: *** IR Dump After Force set function attributes ***
|
|
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
|
|
define void @bar() {
|
|
ret void
|
|
}
|