1; RUN: opt < %s -inline -inline-threshold=20 -S | FileCheck %s 2 3define i32 @callee(i32 %a) { 4 switch i32 %a, label %sw.default [ 5 i32 0, label %sw.bb0 6 i32 1, label %sw.bb1 7 i32 2, label %sw.bb2 8 i32 3, label %sw.bb3 9 i32 4, label %sw.bb4 10 i32 5, label %sw.bb5 11 i32 6, label %sw.bb6 12 i32 7, label %sw.bb7 13 i32 8, label %sw.bb8 14 i32 9, label %sw.bb9 15 ] 16 17sw.default: 18 br label %return 19 20sw.bb0: 21 br label %return 22 23sw.bb1: 24 br label %return 25 26sw.bb2: 27 br label %return 28 29sw.bb3: 30 br label %return 31 32sw.bb4: 33 br label %return 34 35sw.bb5: 36 br label %return 37 38sw.bb6: 39 br label %return 40 41sw.bb7: 42 br label %return 43 44sw.bb8: 45 br label %return 46 47sw.bb9: 48 br label %return 49 50return: 51 ret i32 42 52} 53 54define i32 @caller(i32 %a) { 55; CHECK-LABEL: @caller( 56; CHECK: call i32 @callee( 57 58 %result = call i32 @callee(i32 %a) 59 ret i32 %result 60} 61