File: pr45976.ll

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.6-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,304 kB
  • sloc: cpp: 7,438,677; ansic: 1,393,822; asm: 1,012,926; python: 241,650; f90: 86,635; objc: 75,479; lisp: 42,144; pascal: 17,286; sh: 10,027; ml: 5,082; perl: 4,730; awk: 3,523; makefile: 3,349; javascript: 2,251; xml: 892; fortran: 672
file content (52 lines) | stat: -rw-r--r-- 1,751 bytes parent folder | download | duplicates (6)
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 -passes=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(i1 %arg)
define void @f0(i1 %arg) {
bb:
  br label %bb18.i

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

bb49.preheader.i:                                 ; preds = %bb18.i
  br i1 %arg, 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, ptr @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 %arg, 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, ptr undef, align 4
  store i32 undef, ptr getelementptr inbounds ([3 x [8 x [8 x { i32, i64, i8, i8, i16, i32 }]]], ptr @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()