You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
407 B
22 lines
407 B
; RUN: opt -mergefunc -S < %s | FileCheck %s
|
|
|
|
declare void @dummy()
|
|
|
|
; CHECK-LABEL: define{{.*}}@foo
|
|
; CHECK: call {{.*}}@dummy
|
|
; CHECK: musttail {{.*}}@dummy
|
|
define void @foo() {
|
|
call void @dummy()
|
|
musttail call void @dummy()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: define{{.*}}@bar
|
|
; CHECK: call {{.*}}@dummy
|
|
; CHECK: call {{.*}}@dummy
|
|
define void @bar() {
|
|
call void @dummy()
|
|
call void @dummy()
|
|
ret void
|
|
}
|