2020-08-18 08:48:04 +08:00
|
|
|
; RUN: opt -enable-new-pm=0 -mem2reg -instcombine -print-after-all -disable-output < %s 2>&1 | \
|
2019-11-29 08:42:27 +08:00
|
|
|
; 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'
|
2018-07-12 07:30:25 +08:00
|
|
|
define void @tester(){
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo(){
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2019-11-29 08:42:27 +08:00
|
|
|
; 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}}
|