1 ; RUN: opt -passes=deadargelim -S < %s | FileCheck %s
3 ; Checks if !prof metadata is corret in deadargelim.
5 define 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
13 define internal void @test_vararg(i32, ...) #1 {
17 define internal void @test(i32 %a) #1 {
21 ; CHECK:![[PROF]] = !{!"branch_weights", i32 30}
22 !0 = !{!"branch_weights", i32 30}