1 ; RUN: llvm-as < %s | opt -inline | llvm-dis | \
2 ; RUN: not grep {callee\[12\](}
3 ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep mul
5 define internal i32 @callee1(i32 %A, i32 %B) {
6 %cond = icmp eq i32 %A, 123 ; <i1> [#uses=1]
7 br i1 %cond, label %T, label %F
10 %C = mul i32 %B, %B ; <i32> [#uses=1]
17 define internal i32 @callee2(i32 %A, i32 %B) {
18 switch i32 %A, label %T [
23 %cond = icmp eq i32 %A, 123 ; <i1> [#uses=1]
24 br i1 %cond, label %T, label %F
27 %C = mul i32 %B, %B ; <i32> [#uses=1]
34 %D = mul i32 %B, %B ; <i32> [#uses=1]
35 %E = mul i32 %D, %B ; <i32> [#uses=1]
39 define i32 @test(i32 %A) {
40 %X = call i32 @callee1( i32 10, i32 %A ) ; <i32> [#uses=1]
41 %Y = call i32 @callee2( i32 10, i32 %A ) ; <i32> [#uses=1]
42 %Z = add i32 %X, %Y ; <i32> [#uses=1]