1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Other/printer.ll
Arthur Eubanks 60ce7a3cb9 [NewPM] Pin various tests under Other/ to legacy PM
These all are legacy PM-specific or have a corresponding NPM RUN line.

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D86124
2020-08-17 18:58:08 -07:00

24 lines
1.0 KiB
LLVM

; RUN: opt -enable-new-pm=0 -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}}