summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/HotColdSplit/minsize.ll
blob: eb42ad14af204086b921989295290eb98bb32268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; RUN: opt -hotcoldsplit -S < %s | FileCheck %s

; CHECK-LABEL: @fun
; CHECK: call void @fun.cold.1

define void @fun() {
entry:
  br i1 undef, label %if.then, label %if.else

if.then:
  ret void

if.else:
  call void @sink()
  call void @sink()
  call void @sink()
  ret void
}

declare void @sink() cold

; CHECK: define {{.*}} @fun.cold.1{{.*}}#[[outlined_func_attr:[0-9]+]]
; CHECK: attributes #[[outlined_func_attr]] = { {{.*}}minsize
OpenPOWER on IntegriCloud