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.
17 lines
497 B
17 lines
497 B
; RUN: opt -deadargelim -S < %s | FileCheck %s
|
|
; PR36441
|
|
; Dead arguments should not be removed in presence of `musttail` calls.
|
|
|
|
; CHECK-LABEL: define internal void @test(i32 %a, i32 %b)
|
|
; CHECK: musttail call void @foo(i32 %a, i32 0)
|
|
; FIXME: we should replace those with `undef`s
|
|
define internal void @test(i32 %a, i32 %b) {
|
|
musttail call void @foo(i32 %a, i32 0)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: define internal void @foo(i32 %a, i32 %b)
|
|
define internal void @foo(i32 %a, i32 %b) {
|
|
ret void
|
|
}
|