summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/HotColdSplit/split-cold-1.ll
blob: c8948bcf1dd636ca3e1be8dd65c6e7ae6fdfbbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; RUN: opt -hotcoldsplit -S < %s | FileCheck %s
source_filename = "bugpoint-output-054409e.bc"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.13.0"

declare i32 @__gxx_personality_v0(...)

; Outlined function is called from a basic block named codeRepl
; CHECK: codeRepl:
; CHECK-NEXT: call void @foo
; Function Attrs: ssp uwtable
define hidden void @foo() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
entry:
  br i1 undef, label %if.then, label %if.end

if.then:                                          ; preds = %entry
  unreachable

if.end:                                           ; preds = %entry
  br label %if.then12

if.then12:                                        ; preds = %if.end
  br label %cleanup40

cleanup40:                                        ; preds = %if.then12
  br label %return

return:                                           ; preds = %cleanup40
  ret void
}


OpenPOWER on IntegriCloud