File: aa-crash-phi-no-args.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 (44 lines) | stat: -rw-r--r-- 869 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
; REQUIRES: asserts
; RUN: opt -jump-threading -aa-pipeline basic-aa -S -disable-output %s
; RUN: opt -passes=jump-threading -aa-pipeline basic-aa -S -disable-output %s

define void @foo(i8** %arg1, i32* %arg2) {
bb:
  br label %bb1

bb1:
  %tmp = phi i1 [ 0, %bb24 ], [ 1, %bb ]
  br i1 %tmp, label %bb9, label %bb24


bb9:
  br i1 %tmp, label %bb8, label %bb20

bb8:
  ret void

bb13:
  br label %bb14

bb14:
  %tmp15 = phi i32* [ %tmp21, %bb20 ], [ %arg2, %bb13 ]
  %tmp16 = phi i8** [ %tmp22, %bb20 ], [ %arg1, %bb13 ]
  store atomic i32 0, i32* %tmp15 unordered, align 4
  %tmp17 = load atomic i8*, i8** %tmp16 unordered, align 8
  %tmp18 = icmp eq i8* %tmp17, null
  br i1 %tmp18, label %bb25, label %bb19

bb19:
  ret void

bb20:
  %tmp21 = phi i32* [ %arg2, %bb9 ]
  %tmp22 = phi i8** [ %arg1, %bb9 ]
  br label %bb14

bb24:
  br label %bb1

bb25:
  ret void
}