diff options
Diffstat (limited to 'llvm/test/Transforms/Inline/inline-cold-callee.ll')
-rw-r--r-- | llvm/test/Transforms/Inline/inline-cold-callee.ll | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/llvm/test/Transforms/Inline/inline-cold-callee.ll b/llvm/test/Transforms/Inline/inline-cold-callee.ll index 0543a5a9cd6..1fd9f105db5 100644 --- a/llvm/test/Transforms/Inline/inline-cold-callee.ll +++ b/llvm/test/Transforms/Inline/inline-cold-callee.ll @@ -5,7 +5,7 @@ ; A callee with identical body does gets inlined because cost fits within the ; inline-threshold -define i32 @callee1(i32 %x) !prof !21 { +define i32 @callee1(i32 %x) !prof !1 { %x1 = add i32 %x, 1 %x2 = add i32 %x1, 1 %x3 = add i32 %x2, 1 @@ -13,7 +13,7 @@ define i32 @callee1(i32 %x) !prof !21 { ret i32 %x3 } -define i32 @callee2(i32 %x) !prof !22 { +define i32 @callee2(i32 %x) !prof !2 { ; CHECK-LABEL: @callee2( %x1 = add i32 %x, 1 %x2 = add i32 %x1, 1 @@ -22,7 +22,7 @@ define i32 @callee2(i32 %x) !prof !22 { ret i32 %x3 } -define i32 @caller2(i32 %y1) !prof !22 { +define i32 @caller2(i32 %y1) !prof !2 { ; CHECK-LABEL: @caller2( ; CHECK: call i32 @callee2 ; CHECK-NOT: call i32 @callee1 @@ -32,19 +32,8 @@ define i32 @caller2(i32 %y1) !prof !22 { ret i32 %y3 } -!llvm.module.flags = !{!1} -!21 = !{!"function_entry_count", i64 100} -!22 = !{!"function_entry_count", i64 1} - -!1 = !{i32 1, !"ProfileSummary", !2} -!2 = !{!3, !4, !5, !6, !7, !8, !9, !10} -!3 = !{!"ProfileFormat", !"InstrProf"} -!4 = !{!"TotalCount", i64 10000} -!5 = !{!"MaxBlockCount", i64 1000} -!6 = !{!"MaxInternalBlockCount", i64 1} -!7 = !{!"MaxFunctionCount", i64 1000} -!8 = !{!"NumBlocks", i64 3} -!9 = !{!"NumFunctions", i64 3} -!10 = !{!"DetailedSummary", !11} -!11 = !{!12} -!12 = !{i32 10000, i64 0, i32 0} +!llvm.module.flags = !{!0} +!0 = !{i32 1, !"MaxFunctionCount", i32 1000} +!1 = !{!"function_entry_count", i64 100} +!2 = !{!"function_entry_count", i64 1} + |