File: loop-rotate-liveins.ll

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; 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,538; xml: 953; cs: 573; fortran: 567
file content (98 lines) | stat: -rw-r--r-- 3,076 bytes parent folder | download | duplicates (14)
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 -march=hexagon -O3 -verify-machineinstrs < %s | FileCheck %s
;
; Make sure that this testcase passes the verifier.
; CHECK: call f1

target triple = "hexagon"

%s.0 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i64, i32, i32, i64, i32, i32, i64, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@g0 = external global %s.0, align 8
@g1 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind
define void @f0() local_unnamed_addr #0 {
b0:
  br label %b1

b1:                                               ; preds = %b0
  switch i8 undef, label %b3 [
    i8 35, label %b2
    i8 10, label %b2
  ]

b2:                                               ; preds = %b1, %b1
  unreachable

b3:                                               ; preds = %b1
  br label %b4

b4:                                               ; preds = %b3
  switch i8 undef, label %b6 [
    i8 35, label %b5
    i8 10, label %b5
  ]

b5:                                               ; preds = %b4, %b4
  unreachable

b6:                                               ; preds = %b4
  call void (i8*, i8*, ...) @f1(i8* nonnull undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @g1, i32 0, i32 0), i32* getelementptr inbounds (%s.0, %s.0* @g0, i32 0, i32 45)) #0
  br label %b7

b7:                                               ; preds = %b6
  switch i8 undef, label %b9 [
    i8 35, label %b8
    i8 10, label %b8
  ]

b8:                                               ; preds = %b7, %b7
  unreachable

b9:                                               ; preds = %b7
  br label %b10

b10:                                              ; preds = %b9
  switch i8 undef, label %b12 [
    i8 35, label %b11
    i8 10, label %b11
  ]

b11:                                              ; preds = %b10, %b10
  unreachable

b12:                                              ; preds = %b10
  br label %b13

b13:                                              ; preds = %b12
  switch i8 undef, label %b14 [
    i8 35, label %b15
    i8 10, label %b15
  ]

b14:                                              ; preds = %b13
  br label %b16

b15:                                              ; preds = %b13, %b13
  unreachable

b16:                                              ; preds = %b17, %b14
  %v0 = phi i8* [ %v2, %b17 ], [ undef, %b14 ]
  %v1 = load i8, i8* %v0, align 1
  switch i8 %v1, label %b17 [
    i8 32, label %b18
    i8 9, label %b18
  ]

b17:                                              ; preds = %b16
  %v2 = getelementptr inbounds i8, i8* %v0, i32 1
  br label %b16

b18:                                              ; preds = %b16, %b16
  unreachable
}

; Function Attrs: nounwind
declare void @f1(i8* nocapture readonly, i8* nocapture readonly, ...) local_unnamed_addr #0

attributes #0 = { nounwind "target-cpu"="hexagonv62" }