Daniel Dunbar | e0ae2b2 | 2009-09-07 19:26:18 +0000 | [diff] [blame] | 1 | ; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes |
Dan Gohman | b953974 | 2010-06-07 20:20:33 +0000 | [diff] [blame^] | 2 | ; RUN: llvm-dis remove_arguments_test.ll.tmp-reduced-simplified.bc -o - | FileCheck %s |
Chris Lattner | 484147d | 2003-06-24 23:40:27 +0000 | [diff] [blame] | 3 | |
Reid Spencer | 660c4f9 | 2007-03-19 18:08:42 +0000 | [diff] [blame] | 4 | ; Test to make sure that arguments are removed from the function if they are |
| 5 | ; unnecessary. |
Chris Lattner | 484147d | 2003-06-24 23:40:27 +0000 | [diff] [blame] | 6 | |
Reid Spencer | 660c4f9 | 2007-03-19 18:08:42 +0000 | [diff] [blame] | 7 | declare i32 @test2() |
| 8 | |
Dan Gohman | b953974 | 2010-06-07 20:20:33 +0000 | [diff] [blame^] | 9 | ; CHECK: define void @test() { |
Reid Spencer | 660c4f9 | 2007-03-19 18:08:42 +0000 | [diff] [blame] | 10 | define i32 @test(i32 %A, i32 %B, float %C) { |
| 11 | call i32 @test2() |
| 12 | ret i32 %1 |
Chris Lattner | 484147d | 2003-06-24 23:40:27 +0000 | [diff] [blame] | 13 | } |