1 ; RUN: opt -enable-new-pm=0 -mem2reg -instcombine -print-after-all -disable-output < %s 2>&1 | \
2 ; RUN: FileCheck --check-prefixes=CHECK,OLDPM %s --implicit-check-not='IR Dump'
3 ; RUN: opt -passes='mem2reg,instcombine' -print-after-all -disable-output < %s 2>&1 | \
4 ; RUN: FileCheck --check-prefixes=CHECK,NEWPM %s --implicit-check-not='IR Dump'
13 ; NEWPM: *** IR Dump After VerifierPass
14 ; CHECK: *** IR Dump After {{Promote Memory to Register|PromotePass}}
15 ; CHECK-NEXT: define void @tester
16 ; CHECK: *** IR Dump After {{Combine redundant instructions|InstCombinePass}}
17 ; CHECK-NEXT: define void @tester
18 ; OLDPM: *** IR Dump After Module Verifier
19 ; CHECK: *** IR Dump After {{Promote Memory to Register|PromotePass}}
20 ; CHECK-NEXT: define void @foo
21 ; CHECK: *** IR Dump After {{Combine redundant instructions|InstCombinePass}}
22 ; CHECK-NEXT: define void @foo
23 ; CHECK: *** IR Dump After {{Module Verifier|VerifierPass}}