Skip to content

Commit a151621

Browse files
hiradityamemfrob
authored andcommitted
Revert "[HotColdSplit] Add test case for unlikely attribute in outlined function"
This reverts commit aa1f905890fbbfedf396530f1e14409875ece13c. The flag -codegenprepare maybe causing failures. Reverting this to investigate the root cause.
1 parent 9ba4432 commit a151621

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

llvm/test/Transforms/HotColdSplit/coldentrycount.ll

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
; Test to ensure that split cold function gets 0 entry count profile
22
; metadata when compiling with pgo.
33

4-
; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -codegenprepare -S < %s | FileCheck %s
4+
; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -S < %s | FileCheck %s
55

66
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
77
target triple = "x86_64-apple-macosx10.14.0"
88

9-
; CHECK: define {{.*}} @fun{{.*}} ![[HOTPROF:[0-9]+]] {{.*}}section_prefix ![[LIKELY:[0-9]+]]
9+
; CHECK-LABEL: @fun
1010
; CHECK: call void @fun.cold.1
11-
1211
define void @fun() !prof !14 {
1312
entry:
1413
br i1 undef, label %if.then, label %if.else
@@ -23,12 +22,8 @@ if.else:
2322

2423
declare void @sink() cold
2524

26-
; CHECK: define {{.*}} @fun.cold.1{{.*}} ![[PROF:[0-9]+]] {{.*}}section_prefix ![[UNLIKELY:[0-9]+]]
27-
28-
; CHECK: ![[HOTPROF]] = !{!"function_entry_count", i64 100}
29-
; CHECK: ![[LIKELY]] = !{!"function_section_prefix", !".hot"}
25+
; CHECK: define {{.*}} @fun.cold.1{{.*}} ![[PROF:[0-9]+]]
3026
; CHECK: ![[PROF]] = !{!"function_entry_count", i64 0}
31-
; CHECK: ![[UNLIKELY]] = !{!"function_section_prefix", !".unlikely"}
3227

3328
!llvm.module.flags = !{!0}
3429
!0 = !{i32 1, !"ProfileSummary", !1}
@@ -46,6 +41,3 @@ declare void @sink() cold
4641
!12 = !{i32 999000, i64 100, i32 1}
4742
!13 = !{i32 999999, i64 1, i32 2}
4843
!14 = !{!"function_entry_count", i64 100}
49-
!15 = !{!"function_section_prefix", !".hot"}
50-
!16 = !{!"function_entry_count", i64 0}
51-
!17 = !{!"function_section_prefix", !".unlikely"}

0 commit comments

Comments
 (0)