llvm-project/llvm/test/Transforms/DeadArgElim/dead_vaargs.ll

13 lines
338 B
LLVM
Raw Normal View History

; RUN: opt < %s -deadargelim -S | not grep 47
; RUN: opt < %s -deadargelim -S | not grep 1.0
2006-09-18 15:01:39 +08:00
define i32 @bar(i32 %A) {
%tmp4 = tail call i32 (i32, ...)* @foo( i32 %A, i32 %A, i32 %A, i32 %A, i64 47, double 1.000000e+00 ) ; <i32> [#uses=1]
ret i32 %tmp4
2006-09-18 15:01:39 +08:00
}
define internal i32 @foo(i32 %X, ...) {
ret i32 %X
2006-09-18 15:01:39 +08:00
}