File: pr45976.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 (52 lines) | stat: -rw-r--r-- 1,782 bytes parent folder | download | duplicates (7)
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
; RUN: opt -licm -S < %s | FileCheck %s
; REQUIRES: asserts

@global1 = external global i64, align 8
@global2 = external global [3 x [8 x [8 x { i32, i64, i8, i8, i16, i32 }]]], align 8

; CHECK-LABEL: @f0()
define void @f0() {
bb:
  br label %bb18.i

bb18.i:                                           ; preds = %bb49.us.i.us, %bb
  tail call void @f1()
  br i1 undef, label %.exit.loopexit, label %bb49.preheader.i

bb49.preheader.i:                                 ; preds = %bb18.i
  br i1 undef, label %bb49.us.preheader.i, label %bb78.loopexit3.i

bb49.us.preheader.i:                              ; preds = %bb49.preheader.i
  br label %bb49.us.i.us

bb49.us.i.preheader:                              ; No predecessors!
  br label %.exit

bb49.us.i.us:                                     ; preds = %bb49.us.preheader.i
  br label %bb18.i

bb78.loopexit3.i:                                 ; preds = %bb49.preheader.i
  store i64 0, i64* @global1, align 8
  br label %.exit

.exit.loopexit:                                   ; preds = %bb18.i
  br label %.exit

.exit:                                            ; preds = %.exit.loopexit, %bb78.loopexit3.i, %bb49.us.i.preheader
  br i1 undef, label %bb4.i.us.preheader, label %bb4.i

bb4.i.us.preheader:                               ; preds = %.exit
  br label %bb4.i.us

bb4.i.us:                                         ; preds = %bb4.i.us, %bb4.i.us.preheader
  store i32 0, i32* undef, align 4
  store i32 undef, i32* getelementptr inbounds ([3 x [8 x [8 x { i32, i64, i8, i8, i16, i32 }]]], [3 x [8 x [8 x { i32, i64, i8, i8, i16, i32 }]]]* @global2, i64 0, i64 0, i64 6, i64 6, i32 0), align 8
  br label %bb4.i.us

bb4.i:                                            ; preds = %.exit
  ret void
}

declare void @f1()