171 lines · plain
1; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -inline-threshold=0 -disable-output2 3target datalayout = "e-m:e-i64:64-n32:64"4target triple = "powerpc64le-unknown-linux-gnu"5 6%0 = type { ptr, %1, %1, %3, %3, %3, i8, float, ptr, ptr, ptr, i32, i32, i32, i32, float, float, float, ptr, i32, float, float, float, i8, [7 x i8] }7%1 = type { %2, %3 }8%2 = type { [3 x %3] }9%3 = type { [4 x float] }10%4 = type <{ ptr, i16, i16, [4 x i8], ptr, i32, %3, %3, [4 x i8] }>11%5 = type { ptr, i32, ptr }12%6 = type <{ %7, [4 x i8], ptr, ptr, %30, %35, %3, float, i8, i8, i8, i8, %37, i32, [4 x i8] }>13%7 = type <{ %8, [7 x i8], ptr, ptr, ptr, %17 }>14%8 = type <{ ptr, %9, ptr, %12, ptr, ptr, ptr, i8 }>15%9 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>16%11 = type { ptr }17%12 = type { float, i32, i32, float, i8, ptr, i8, i8, i8, float, i8, float, ptr }18%13 = type opaque19%14 = type { ptr }20%15 = type { ptr }21%16 = type <{ %8, [7 x i8], ptr, ptr, ptr, %17, [4 x i8] }>22%17 = type { %18 }23%18 = type { float, float, float, float, float, i32, float, float, float, float, float, i32, float, float, float, i32, i32 }24%19 = type { ptr }25%20 = type <{ ptr, %21, %25, %9, i8, [7 x i8] }>26%21 = type { %22 }27%22 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>28%24 = type { i32, i32 }29%25 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>30%27 = type { i32, [4 x i8], [4 x %29], ptr, ptr, i32, float, float, i32 }31%29 = type <{ %3, %3, %3, %3, %3, float, float, float, i32, i32, i32, i32, [4 x i8], ptr, float, i8, [3 x i8], float, float, i32, %3, %3, [4 x i8] }>32%30 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>33%32 = type { ptr, i32, i32, i32, i8, ptr, ptr, float, float, %3, %3, %3 }34%33 = type <{ %0, %2, %3, %3, float, %3, %3, %3, %3, %3, %3, %3, float, float, i8, [3 x i8], float, float, float, float, float, float, ptr, %30, i32, i32, i32, [4 x i8] }>35%34 = type { ptr }36%35 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>37%37 = type <{ i8, [3 x i8], i32, i32, [4 x i8], ptr, i8, [7 x i8] }>38%39 = type { ptr }39%40 = type <{ ptr, %9, ptr, %12, ptr, ptr, ptr, i8, [7 x i8] }>40 41@gDisableDeactivation = external local_unnamed_addr global i8, align 142@0 = external dso_local unnamed_addr constant [29 x i8], align 143@1 = external dso_local unnamed_addr constant [14 x i8], align 144@2 = external dso_local unnamed_addr constant [22 x i8], align 145@gDeactivationTime = external local_unnamed_addr global float, align 446 47declare void @_ZN15CProfileManager12Stop_ProfileEv() local_unnamed_addr48 49declare void @_ZN15CProfileManager13Start_ProfileEPKc(ptr) local_unnamed_addr50 51declare void @_ZN17btCollisionObject18setActivationStateEi(ptr, i32 signext) local_unnamed_addr52 53declare hidden void @__clang_call_terminate(ptr) local_unnamed_addr54 55declare i32 @__gxx_personality_v0(...)56 57; Function Attrs: argmemonly nounwind58declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1) #059 60define void @_ZN23btDiscreteDynamicsWorld28internalSingleStepSimulationEf(ptr, float) unnamed_addr align 2 personality ptr @__gxx_personality_v0 !prof !27 {61 invoke void null(ptr nonnull %0, float %1)62 to label %5 unwind label %363 64; <label>:3: ; preds = %265 %4 = landingpad { ptr, i32 }66 cleanup67 br label %1668 69; <label>:5: ; preds = %270 %6 = invoke ptr null(ptr null)71 to label %11 unwind label %1372 73; <label>:7: ; preds = %574 invoke void null(ptr null)75 to label %8 unwind label %1376 77; <label>:8: ; preds = %778 invoke void null(ptr nonnull %0)79 to label %9 unwind label %1380 81; <label>:9: ; preds = %882 invoke void null(ptr nonnull %0, ptr nonnull dereferenceable(68) null)83 to label %10 unwind label %1384 85; <label>:10: ; preds = %986 invoke void null(ptr nonnull %0, float %1)87 to label %11 unwind label %1388 89; <label>:11:90 invoke void @_ZN23btDiscreteDynamicsWorld21updateActivationStateEf(ptr nonnull %0, float %1)91 to label %12 unwind label %1392 93; <label>:12:94 ret void95 96; <label>:13:97 %14 = landingpad { ptr, i32 }98 cleanup99 %15 = extractvalue { ptr, i32 } %14, 0100 br label %16101 102 103; <label>:16:104 call void @_ZN15CProfileManager12Stop_ProfileEv()105 resume { ptr, i32 } zeroinitializer106}107 108define void @_ZN23btDiscreteDynamicsWorld21updateActivationStateEf(ptr nocapture readonly, float) local_unnamed_addr align 2 personality ptr @__gxx_personality_v0 !prof !27 {109 %3 = icmp sgt i32 0, 0110 br i1 %3, label %4, label %5, !prof !29111 112; <label>:4: ; preds = %2113 br i1 false, label %5, label %6, !prof !30114 115; <label>:5: ; preds = %7, %4, %2116 ret void117 118; <label>:6: ; preds = %4119 invoke void @_ZN17btCollisionObject18setActivationStateEi(ptr nonnull null, i32 signext 0)120 to label %7 unwind label %8121 122; <label>:7: ; preds = %6123 invoke void @_ZN17btCollisionObject18setActivationStateEi(ptr nonnull null, i32 signext 1)124 to label %5 unwind label %8125 126; <label>:8: ; preds = %7, %6127 %9 = landingpad { ptr, i32 }128 cleanup129 resume { ptr, i32 } %9130}131 132; Function Attrs: noreturn nounwind133declare void @llvm.trap() #1134 135attributes #0 = { argmemonly nounwind }136attributes #1 = { noreturn nounwind }137 138!llvm.module.flags = !{!0}139 140!0 = !{i32 1, !"ProfileSummary", !1}141!1 = !{!2, !3, !4, !5, !6, !7, !8, !9}142!2 = !{!"ProfileFormat", !"InstrProf"}143!3 = !{!"TotalCount", i64 6540578580}144!4 = !{!"MaxCount", i64 629805108}145!5 = !{!"MaxInternalCount", i64 40670372}146!6 = !{!"MaxFunctionCount", i64 629805108}147!7 = !{!"NumCounts", i64 8554}148!8 = !{!"NumFunctions", i64 3836}149!9 = !{!"DetailedSummary", !10}150!10 = !{!11, !12, !13, !14, !15, !16, !16, !17, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26}151!11 = !{i32 10000, i64 629805108, i32 1}152!12 = !{i32 100000, i64 366853677, i32 2}153!13 = !{i32 200000, i64 196816893, i32 4}154!14 = !{i32 300000, i64 192575561, i32 7}155!15 = !{i32 400000, i64 130688163, i32 11}156!16 = !{i32 500000, i64 74857169, i32 19}157!17 = !{i32 600000, i64 48184151, i32 30}158!18 = !{i32 700000, i64 21298588, i32 49}159!19 = !{i32 800000, i64 10721033, i32 90}160!20 = !{i32 900000, i64 3301634, i32 202}161!21 = !{i32 950000, i64 1454952, i32 362}162!22 = !{i32 990000, i64 343872, i32 675}163!23 = !{i32 999000, i64 46009, i32 1112}164!24 = !{i32 999900, i64 6067, i32 1435}165!25 = !{i32 999990, i64 700, i32 1721}166!26 = !{i32 999999, i64 72, i32 1955}167!27 = !{!"function_entry_count", i64 700}168!28 = !{!"branch_weights", i32 701, i32 1}169!29 = !{!"branch_weights", i32 954001, i32 701}170!30 = !{!"branch_weights", i32 1, i32 954001}171