brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · d4e709c Raw
24 lines · plain
1; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls.2;3; RUN: llvm-reduce --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefix=CHECK-ALL --test-arg %s --test-arg --input-file %s -o %t4; RUN: FileCheck --check-prefix=CHECK-ALL %s < %t5 6; CHECK-ALL: @uninteresting1 = global7; CHECK-ALL: @uninteresting2 = global8; CHECK-ALL: @uninteresting3 = global9@uninteresting1 = global i32 0, align 410@uninteresting2 = global i32 0, align 411@uninteresting3 = global i32 0, align 412 13declare void @use(ptr, ptr, ptr)14 15; CHECK-LABEL: @interesting()16define void @interesting() {17entry:18  ; CHECK-ALL: call void @use(ptr @uninteresting1, ptr @uninteresting2, ptr @uninteresting3)19  call void @use(ptr @uninteresting1, ptr @uninteresting2, ptr @uninteresting3)20  call void @use(ptr @uninteresting1, ptr @uninteresting2, ptr @uninteresting3)21  call void @use(ptr @uninteresting1, ptr @uninteresting2, ptr @uninteresting3)22  ret void23}24