1; RUN: opt -deadargelim -S < %s | FileCheck %s
2
3; Checks if !prof metadata is corret in deadargelim.
4
5define void @caller() #0 {
6; CHECK: call void @test_vararg(), !prof ![[PROF:[0-9]]]
7; CHECK: call void @test(), !prof ![[PROF]]
8  call void (i32, ...) @test_vararg(i32 1), !prof !0
9  call void @test(i32 1), !prof !0
10  ret void
11}
12
13define internal void @test_vararg(i32, ...) #1 {
14  ret void
15}
16
17define internal void @test(i32 %a) #1 {
18  ret void
19}
20
21; CHECK:![[PROF]] = !{!"branch_weights", i32 30}
22!0 = !{!"branch_weights", i32 30}
23