diff options
author | Eric Liu <ioeric@google.com> | 2016-04-18 15:31:11 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2016-04-18 15:31:11 +0000 |
commit | d09f15ea6f17e51ec2ec59b8c3b0e5ba52dd8358 (patch) | |
tree | 84ea417235fc849a0b45704fb518b0f9f7582ba5 /llvm/test/Transforms | |
parent | 4f2aa5756989c672d111b683eb095275e14ed56b (diff) | |
download | bcm5719-llvm-d09f15ea6f17e51ec2ec59b8c3b0e5ba52dd8358.tar.gz bcm5719-llvm-d09f15ea6f17e51ec2ec59b8c3b0e5ba52dd8358.zip |
Revert "Replace the use of MaxFunctionCount module flag"
This reverts commit r266477.
This commit introduces cyclic dependency. This commit has "Analysis" depend on "ProfileData",
while "ProfileData" depends on "Object", which depends on "BitCode", which
depends on "Analysis".
llvm-svn: 266619
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r-- | llvm/test/Transforms/Inline/inline-cold-callee.ll | 27 | ||||
-rw-r--r-- | llvm/test/Transforms/Inline/inline-hot-callee.ll | 27 |
2 files changed, 16 insertions, 38 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} + diff --git a/llvm/test/Transforms/Inline/inline-hot-callee.ll b/llvm/test/Transforms/Inline/inline-hot-callee.ll index 905625e286d..93ea9d43c78 100644 --- a/llvm/test/Transforms/Inline/inline-hot-callee.ll +++ b/llvm/test/Transforms/Inline/inline-hot-callee.ll @@ -5,7 +5,7 @@ ; A cold callee with identical body does not get inlined because cost exceeds the ; inline-threshold -define i32 @callee1(i32 %x) !prof !20 { +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 !20 { ret i32 %x3 } -define i32 @callee2(i32 %x) !prof !21 { +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 !21 { ret i32 %x3 } -define i32 @caller2(i32 %y1) !prof !21 { +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 !21 { ret i32 %y3 } -!llvm.module.flags = !{!1} -!20 = !{!"function_entry_count", i64 10} -!21 = !{!"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 10} -!6 = !{!"MaxInternalBlockCount", i64 1} -!7 = !{!"MaxFunctionCount", i64 10} -!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 10} +!1 = !{!"function_entry_count", i64 10} +!2 = !{!"function_entry_count", i64 1} + |