brintos

brintos / llvm-project-archived public Read only

0
0
Text · 552 B · 95105ea Raw
13 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 -delta-passes=arguments --test %python --test-arg %p/Inputs/remove-args.py %s -o %t4; RUN: cat %t | FileCheck -implicit-check-not=uninteresting %s5 6; CHECK: @interesting(i32 %interesting)7define void @interesting(i32 %uninteresting1, i32 %interesting, i32 %uninteresting2) {8entry:9  ; CHECK: call void @interesting(i32 0)10  call void @interesting(i32 -1, i32 0, i32 -1)11  ret void12}13