File: meetBDVState-hangs.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 (63 lines) | stat: -rw-r--r-- 2,231 bytes parent folder | download | duplicates (14)
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
; RUN: opt -S -passes=rewrite-statepoints-for-gc < %s | FileCheck %s

; Regression test to incorrectly testing fixed state causing infinite loop.
; CHECK: test
target triple = "x86_64-unknown-linux-gnu"

declare void @bar(ptr addrspace(1) nocapture readonly)
declare noalias ptr addrspace(1) @foo()

define ptr addrspace(1) @test(i1 %c, i1 %c1, i1 %c2, i1 %c3, i1 %c4, i1 %c5, i1 %c.exit) gc "statepoint-example" {
entry:
  br i1 %c, label %ph.L, label %ph.R
ph.L:
  %ph.L.p.b = call noalias nonnull ptr addrspace(1) @foo()
  %ph.L.p = getelementptr i8, ptr addrspace(1) %ph.L.p.b, i64 8
  br label %ph.M
ph.R:
  %ph.R.p = call noalias nonnull ptr addrspace(1) @foo()
  br label %ph.M
ph.M:
  %ph.M.p = phi ptr addrspace(1) [ %ph.L.p, %ph.L ], [ %ph.R.p, %ph.R ]
  br label %header

header:
  %header.p = phi ptr addrspace(1) [ %ph.M.p, %ph.M ], [ %backedge.p, %backedge]
  br i1 %c1, label %loop.M, label %loop.R

loop.R:
  br i1 %c2, label %loop.R.M, label %loop.R.R

loop.R.R:
  %loop.R.R.p = call noalias nonnull ptr addrspace(1) @foo()
  br label %loop.R.M

loop.R.M:
  %loop.R.M.p = phi ptr addrspace(1) [ %header.p, %loop.R ], [ %loop.R.R.p, %loop.R.R ]
  br label %loop.M

loop.M:
  %loop.M.p = phi ptr addrspace(1) [ %loop.R.M.p, %loop.R.M ], [ %header.p, %header ]
  br i1 %c4, label %backedge, label %pre.backedge.R

pre.backedge.R:
  br i1 %c5, label %pre.backedge.R.L, label %pre.backedge.R.R
pre.backedge.R.L:
  %pre.backedge.R.L.p.b = call noalias nonnull ptr addrspace(1) @foo()
  %pre.backedge.R.L.p = getelementptr i8, ptr addrspace(1) %pre.backedge.R.L.p.b, i64 8
  br label %pre.backedge.R.M
pre.backedge.R.R:
  %pre.backedge.R.R.p = call noalias nonnull ptr addrspace(1) @foo()
  br label %pre.backedge.R.M
pre.backedge.R.M:
  %pre.backedge.R.M.p = phi ptr addrspace(1) [ %pre.backedge.R.L.p, %pre.backedge.R.L ], [ %pre.backedge.R.R.p, %pre.backedge.R.R ]
  br label %backedge

backedge:
  %backedge.p = phi ptr addrspace(1) [ %pre.backedge.R.M.p, %pre.backedge.R.M ], [ %loop.M.p, %loop.M ]
  br i1 %c.exit, label %header, label %exit

exit:                                                ; preds = %3, %1
  call void @bar(ptr addrspace(1) align 8 %header.p) [ "deopt"() ]
  ret ptr addrspace(1) %header.p
}