[PATCH] D85229: Revert "[HotColdSplit] Add test case for unlikely attribute in outlined function"
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 11:03:13 PDT 2020
hiraditya created this revision.
hiraditya added reviewers: rjf, rcorcs, vsk.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
hiraditya requested review of this revision.
This reverts commit aa1f905890fbbfedf396530f1e14409875ece13c.
The flag -codegenprepare maybe causing failures. Reverting this
to investigate the root cause.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85229
Files:
llvm/test/Transforms/HotColdSplit/coldentrycount.ll
Index: llvm/test/Transforms/HotColdSplit/coldentrycount.ll
===================================================================
--- llvm/test/Transforms/HotColdSplit/coldentrycount.ll
+++ llvm/test/Transforms/HotColdSplit/coldentrycount.ll
@@ -1,14 +1,13 @@
; Test to ensure that split cold function gets 0 entry count profile
; metadata when compiling with pgo.
-; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -codegenprepare -S < %s | FileCheck %s
+; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -S < %s | FileCheck %s
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.14.0"
-; CHECK: define {{.*}} @fun{{.*}} ![[HOTPROF:[0-9]+]] {{.*}}section_prefix ![[LIKELY:[0-9]+]]
+; CHECK-LABEL: @fun
; CHECK: call void @fun.cold.1
-
define void @fun() !prof !14 {
entry:
br i1 undef, label %if.then, label %if.else
@@ -23,12 +22,8 @@
declare void @sink() cold
-; CHECK: define {{.*}} @fun.cold.1{{.*}} ![[PROF:[0-9]+]] {{.*}}section_prefix ![[UNLIKELY:[0-9]+]]
-
-; CHECK: ![[HOTPROF]] = !{!"function_entry_count", i64 100}
-; CHECK: ![[LIKELY]] = !{!"function_section_prefix", !".hot"}
+; CHECK: define {{.*}} @fun.cold.1{{.*}} ![[PROF:[0-9]+]]
; CHECK: ![[PROF]] = !{!"function_entry_count", i64 0}
-; CHECK: ![[UNLIKELY]] = !{!"function_section_prefix", !".unlikely"}
!llvm.module.flags = !{!0}
!0 = !{i32 1, !"ProfileSummary", !1}
@@ -46,6 +41,3 @@
!12 = !{i32 999000, i64 100, i32 1}
!13 = !{i32 999999, i64 1, i32 2}
!14 = !{!"function_entry_count", i64 100}
-!15 = !{!"function_section_prefix", !".hot"}
-!16 = !{!"function_entry_count", i64 0}
-!17 = !{!"function_section_prefix", !".unlikely"}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85229.282966.patch
Type: text/x-patch
Size: 1681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200804/40749637/attachment.bin>
More information about the llvm-commits
mailing list