1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Other/printer.ll
Fangrui Song 5c162bc608 [PassInstrumentation] Remove excess newline for the new pass manager
This also removes excess newline for the legacy pass manager when -filter-print-funcs is specified.
2019-11-28 17:20:17 -08:00

24 lines
1007 B
LLVM

; RUN: opt -mem2reg -instcombine -print-after-all -disable-output < %s 2>&1 | \
; RUN: FileCheck --check-prefixes=CHECK,OLDPM %s --implicit-check-not='IR Dump'
; RUN: opt -passes='mem2reg,instcombine' -print-after-all -disable-output < %s 2>&1 | \
; RUN: FileCheck --check-prefixes=CHECK,NEWPM %s --implicit-check-not='IR Dump'
define void @tester(){
ret void
}
define void @foo(){
ret void
}
; NEWPM: *** IR Dump After VerifierPass
; CHECK: *** IR Dump After {{Promote Memory to Register|PromotePass}}
; CHECK-NEXT: define void @tester
; CHECK: *** IR Dump After {{Combine redundant instructions|InstCombinePass}}
; CHECK-NEXT: define void @tester
; OLDPM: *** IR Dump After Module Verifier
; CHECK: *** IR Dump After {{Promote Memory to Register|PromotePass}}
; CHECK-NEXT: define void @foo
; CHECK: *** IR Dump After {{Combine redundant instructions|InstCombinePass}}
; CHECK-NEXT: define void @foo
; CHECK: *** IR Dump After {{Module Verifier|VerifierPass}}