File: D108043.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 (62 lines) | stat: -rw-r--r-- 1,898 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
53
54
55
56
57
58
59
60
61
62
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -passes=indvars -S %s | FileCheck %s

@g_2168 = external global [4 x [6 x i32]], align 16
@g_1150 = external global ptr, align 8

define internal fastcc void @func_2() unnamed_addr {
; CHECK-LABEL: @func_2(
; CHECK-NEXT:  lbl_2898.preheader:
; CHECK-NEXT:    br label [[LBL_2898:%.*]]
; CHECK:       lbl_2898.loopexit:
; CHECK-NEXT:    store ptr getelementptr inbounds nuw (i8, ptr @g_2168, i64 76), ptr @g_1150, align 8
; CHECK-NEXT:    br label [[LBL_2898]]
; CHECK:       lbl_2898:
; CHECK-NEXT:    br label [[FOR_COND884:%.*]]
; CHECK:       for.cond884:
; CHECK-NEXT:    br i1 false, label [[FOR_BODY888:%.*]], label [[LBL_2898_LOOPEXIT:%.*]]
; CHECK:       for.body888:
; CHECK-NEXT:    br label [[FOR_COND918:%.*]]
; CHECK:       for.cond918:
; CHECK-NEXT:    br label [[FOR_END926:%.*]]
; CHECK:       for.end926:
; CHECK-NEXT:    br label [[FOR_COND936:%.*]]
; CHECK:       for.cond936:
; CHECK-NEXT:    br label [[FOR_END987:%.*]]
; CHECK:       for.end987:
; CHECK-NEXT:    br label [[FOR_COND884]]
;
lbl_2898.preheader:
  br label %lbl_2898

lbl_2898.loopexit:
  %.lcssa = phi ptr [ %0, %for.cond884 ]
  store ptr %.lcssa, ptr @g_1150, align 8
  br label %lbl_2898

lbl_2898:
  %g_1150.promoted = load ptr, ptr @g_1150, align 8
  br label %for.cond884

for.cond884:
  %0 = phi ptr [ getelementptr inbounds ([4 x [6 x i32]], ptr @g_2168, i64 0, i64 3, i64 1), %for.end987 ], [ %g_1150.promoted, %lbl_2898 ]
  %storemerge9 = phi i16 [ %add990, %for.end987 ], [ 0, %lbl_2898 ]
  %cmp886 = icmp slt i16 %storemerge9, 3
  br i1 %cmp886, label %for.body888, label %lbl_2898.loopexit

for.body888:
  br label %for.cond918

for.cond918:
  br label %for.end926

for.end926:
  br label %for.cond936

for.cond936:
  br label %for.end987

for.end987:
  %add990 = add i16 %storemerge9, 1
  br label %for.cond884
}