File: pacbti-m-outliner-5.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-20
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,496,436 kB
  • sloc: cpp: 5,593,990; ansic: 986,873; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,547; xml: 953; cs: 573; fortran: 567
file content (98 lines) | stat: -rw-r--r-- 3,083 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
; RUN: llc %s -o - | FileCheck %s
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "thumbv7m-arm-none-eabi"

; CHECK-LABEL: x:
; CHECK: bl OUTLINED_FUNCTION
; CHECK-LABEL: y:
; CHECK: bl OUTLINED_FUNCTION
; CHECK-LABEL: z:
; CHECK-NOT: bl OUTLINED_FUNCTION

@a = hidden global i32 0, align 4
@b = hidden global i32 0, align 4
@c = hidden global i32 0, align 4
@d = hidden global i32 0, align 4
@e = hidden global i32 0, align 4
@f = hidden global i32 0, align 4
@g = hidden global i32 0, align 4
@h = hidden global i32 0, align 4
@i = hidden global i32 0, align 4

define hidden i32 @x() local_unnamed_addr #0 {
entry:
  %0 = load volatile i32, i32* @a, align 4
  %1 = load volatile i32, i32* @b, align 4
  %add = add nsw i32 %1, %0
  %2 = load volatile i32, i32* @c, align 4
  %3 = load volatile i32, i32* @d, align 4
  %add1 = add nsw i32 %3, %2
  %div = sdiv i32 %add, %add1
  %4 = load volatile i32, i32* @e, align 4
  %5 = load volatile i32, i32* @f, align 4
  %6 = load volatile i32, i32* @g, align 4
  %div3 = sdiv i32 %5, %6
  %7 = load volatile i32, i32* @h, align 4
  %8 = load volatile i32, i32* @i, align 4
  %add2 = add i32 %div, 1
  %add4 = add i32 %add2, %4
  %add5 = add i32 %add4, %div3
  %add6 = add i32 %add5, %7
  %add7 = add i32 %add6, %8
  ret i32 %add7
}

define hidden i32 @y() local_unnamed_addr #0 {
entry:
  %0 = load volatile i32, i32* @a, align 4
  %1 = load volatile i32, i32* @b, align 4
  %add = add nsw i32 %1, %0
  %2 = load volatile i32, i32* @c, align 4
  %3 = load volatile i32, i32* @d, align 4
  %add1 = add nsw i32 %3, %2
  %div = sdiv i32 %add, %add1
  %4 = load volatile i32, i32* @e, align 4
  %5 = load volatile i32, i32* @f, align 4
  %6 = load volatile i32, i32* @g, align 4
  %div3 = sdiv i32 %5, %6
  %7 = load volatile i32, i32* @h, align 4
  %8 = load volatile i32, i32* @i, align 4
  %add2 = add i32 %div, 2
  %add4 = add i32 %add2, %4
  %add5 = add i32 %add4, %div3
  %add6 = add i32 %add5, %7
  %add7 = add i32 %add6, %8
  ret i32 %add7
}

define hidden i32 @z() local_unnamed_addr #1 {
entry:
  %0 = load volatile i32, i32* @a, align 4
  %1 = load volatile i32, i32* @b, align 4
  %add = add nsw i32 %1, %0
  %2 = load volatile i32, i32* @c, align 4
  %3 = load volatile i32, i32* @d, align 4
  %add1 = add nsw i32 %3, %2
  %div = sdiv i32 %add, %add1
  %4 = load volatile i32, i32* @e, align 4
  %5 = load volatile i32, i32* @f, align 4
  %6 = load volatile i32, i32* @g, align 4
  %div3 = sdiv i32 %5, %6
  %7 = load volatile i32, i32* @h, align 4
  %8 = load volatile i32, i32* @i, align 4
  %add2 = add i32 %div, 3
  %add4 = add i32 %add2, %4
  %add5 = add i32 %add4, %div3
  %add6 = add i32 %add5, %7
  %add7 = add i32 %add6, %8
  ret i32 %add7
}

attributes #0 = { minsize nofree norecurse nounwind optsize }
attributes #1 = { minsize nofree norecurse nounwind optsize "sign-return-address"="none" }

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 1, !"branch-target-enforcement", i32 0}
!1 = !{i32 1, !"sign-return-address", i32 1}
!2 = !{i32 1, !"sign-return-address-all", i32 0}