File: lcssa.ll

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-6~deb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,418,812 kB
  • sloc: cpp: 5,290,827; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,900; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,892; xml: 953; cs: 573; fortran: 539
file content (72 lines) | stat: -rw-r--r-- 2,322 bytes parent folder | download | duplicates (5)
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
; RUN: opt -basic-aa -loop-versioning -S < %s | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"

define void @fill(i8** %ls1.20, i8** %ls2.21, i8* %cse3.22) {
; CHECK: bb1.lver.check:
; CHECK:   br i1 %memcheck.conflict, label %bb1.ph.lver.orig, label %bb1.ph
bb1.ph:
  %ls1.20.promoted = load i8*, i8** %ls1.20
  %ls2.21.promoted = load i8*, i8** %ls2.21
  br label %bb1

bb1:
  %_tmp302 = phi i8* [ %ls2.21.promoted, %bb1.ph ], [ %_tmp30, %bb1 ]
  %_tmp281 = phi i8* [ %ls1.20.promoted, %bb1.ph ], [ %_tmp28, %bb1 ]
  %_tmp14 = getelementptr i8, i8* %_tmp281, i16 -1
  %_tmp15 = load i8, i8* %_tmp14
  %add = add i8 %_tmp15, 1
  store i8 %add, i8* %_tmp281
  store i8 %add, i8* %_tmp302
  %_tmp28 = getelementptr i8, i8* %_tmp281, i16 1
  %_tmp30 = getelementptr i8, i8* %_tmp302, i16 1
  br i1 false, label %bb1, label %bb3.loopexit

bb3.loopexit:
  %_tmp30.lcssa = phi i8* [ %_tmp30, %bb1 ]
  %_tmp15.lcssa = phi i8 [ %_tmp15, %bb1 ]
  %_tmp28.lcssa = phi i8* [ %_tmp28, %bb1 ]
  store i8* %_tmp28.lcssa, i8** %ls1.20
  store i8 %_tmp15.lcssa, i8* %cse3.22
  store i8* %_tmp30.lcssa, i8** %ls2.21
  br label %bb3

bb3:
  ret void
}

define void @fill_no_null_opt(i8** %ls1.20, i8** %ls2.21, i8* %cse3.22) #0 {
; CHECK-LABEL: fill_no_null_opt(
; CHECK: bb1.lver.check:
; CHECK: %lver.safe = or i1 %memcheck.conflict, %{{.*}}
; CHECK:  br i1 %lver.safe, label %bb1.ph.lver.orig, label %bb1.ph
bb1.ph:
  %ls1.20.promoted = load i8*, i8** %ls1.20
  %ls2.21.promoted = load i8*, i8** %ls2.21
  br label %bb1

bb1:
  %_tmp302 = phi i8* [ %ls2.21.promoted, %bb1.ph ], [ %_tmp30, %bb1 ]
  %_tmp281 = phi i8* [ %ls1.20.promoted, %bb1.ph ], [ %_tmp28, %bb1 ]
  %_tmp14 = getelementptr i8, i8* %_tmp281, i16 -1
  %_tmp15 = load i8, i8* %_tmp14
  %add = add i8 %_tmp15, 1
  store i8 %add, i8* %_tmp281
  store i8 %add, i8* %_tmp302
  %_tmp28 = getelementptr i8, i8* %_tmp281, i16 1
  %_tmp30 = getelementptr i8, i8* %_tmp302, i16 1
  br i1 false, label %bb1, label %bb3.loopexit

bb3.loopexit:
  %_tmp30.lcssa = phi i8* [ %_tmp30, %bb1 ]
  %_tmp15.lcssa = phi i8 [ %_tmp15, %bb1 ]
  %_tmp28.lcssa = phi i8* [ %_tmp28, %bb1 ]
  store i8* %_tmp28.lcssa, i8** %ls1.20
  store i8 %_tmp15.lcssa, i8* %cse3.22
  store i8* %_tmp30.lcssa, i8** %ls2.21
  br label %bb3

bb3:
  ret void
}

attributes #0 = { null_pointer_is_valid }