Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Transforms/HotColdSplit/coldentrycount.ll
; Test to ensure that split cold function gets 0 entry count profile | ; Test to ensure that split cold function gets 0 entry count profile | ||||
; metadata when compiling with pgo. | ; metadata when compiling with pgo. | ||||
; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -codegenprepare -S < %s | FileCheck %s | ; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -codegenprepare -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: define {{.*}} @fun{{.*}} ![[HOTPROF:[0-9]+]] {{.*}}section_prefix ![[LIKELY:[0-9]+]] | ||||
; CHECK: call void @fun.cold.1 | ; CHECK: call void @fun.cold.1 | ||||
define void @fun() !prof !14 { | define void @fun() !prof !14 { | ||||
entry: | entry: | ||||
br i1 undef, label %if.then, label %if.else | br i1 undef, label %if.then, label %if.else | ||||
if.then: | if.then: | ||||
Show All 35 Lines |