blob: 39a1371640f60c30d67539d53a84208ea7ffb1e9 [file] [log] [blame]
Daniel Dunbare0ae2b22009-09-07 19:26:18 +00001; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes
Dan Gohmanb9539742010-06-07 20:20:33 +00002; RUN: llvm-dis remove_arguments_test.ll.tmp-reduced-simplified.bc -o - | FileCheck %s
Chris Lattner484147d2003-06-24 23:40:27 +00003
Reid Spencer660c4f92007-03-19 18:08:42 +00004; Test to make sure that arguments are removed from the function if they are
5; unnecessary.
Chris Lattner484147d2003-06-24 23:40:27 +00006
Reid Spencer660c4f92007-03-19 18:08:42 +00007declare i32 @test2()
8
Dan Gohmanb9539742010-06-07 20:20:33 +00009; CHECK: define void @test() {
Reid Spencer660c4f92007-03-19 18:08:42 +000010define i32 @test(i32 %A, i32 %B, float %C) {
11 call i32 @test2()
12 ret i32 %1
Chris Lattner484147d2003-06-24 23:40:27 +000013}