23 lines · plain
1; RUN: opt -passes=deadargelim -S < %s | FileCheck %s2 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 !09 call void @test(i32 1), !prof !010 ret void11}12 13define internal void @test_vararg(i32, ...) #1 {14 ret void15}16 17define internal void @test(i32 %a) #1 {18 ret void19}20 21; CHECK:![[PROF]] = !{!"branch_weights", i32 30}22!0 = !{!"branch_weights", i32 30}23