File: inv-load-lnt-crash-wrong-order-3.ll

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (68 lines) | stat: -rw-r--r-- 3,215 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
; RUN: opt %loadPolly -polly-codegen -S \
; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s
;
; This crashed our codegen at some point, verify it runs through
;
; CHECK: polly.start
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

%struct.colocated_params = type { i32, i32, i32, [6 x [33 x i64]], ptr, ptr, ptr, ptr, [6 x [33 x i64]], ptr, ptr, ptr, ptr, [6 x [33 x i64]], ptr, ptr, ptr, ptr, i8, ptr }
%struct.storable_picture9 = type { i32, i32, i32, i32, i32, [50 x [6 x [33 x i64]]], [50 x [6 x [33 x i64]]], [50 x [6 x [33 x i64]]], [50 x [6 x [33 x i64]]], i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32, ptr, i32 }
%struct.DecRefPicMarking_s = type { i32, i32, i32, i32, i32, ptr }

; Function Attrs: nounwind uwtable
define void @compute_colocated(ptr %p) #0 {
entry:
  %tmp = load ptr, ptr undef, align 8
  br label %for.body.393

for.body.393:                                     ; preds = %if.end.549, %entry
  br i1 undef, label %if.then.397, label %if.else.643

if.then.397:                                      ; preds = %for.body.393
  %ref_idx456 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 36
  %tmp1 = load ptr, ptr %ref_idx456, align 8
  %tmp2 = load ptr, ptr %tmp1, align 8
  %tmp3 = load ptr, ptr %tmp2, align 8
  %tmp4 = load i8, ptr %tmp3, align 1
  %cmp461 = icmp eq i8 %tmp4, -1
  br i1 %cmp461, label %if.then.463, label %if.else.476

if.then.463:                                      ; preds = %if.then.397
  br label %if.end.501

if.else.476:                                      ; preds = %if.then.397
  %ref_id491 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 38
  %tmp5 = load ptr, ptr %ref_id491, align 8
  br label %if.end.501

if.end.501:                                       ; preds = %if.else.476, %if.then.463
  %tmp6 = load ptr, ptr %ref_idx456, align 8
  %arrayidx505 = getelementptr inbounds ptr, ptr %tmp6, i64 1
  %tmp7 = load ptr, ptr %arrayidx505, align 8
  %tmp8 = load ptr, ptr %tmp7, align 8
  %tmp9 = load i8, ptr %tmp8, align 1
  %cmp509 = icmp eq i8 %tmp9, -1
  %ref_idx514 = getelementptr inbounds %struct.colocated_params, ptr %p, i64 0, i32 4
  %tmp10 = load ptr, ptr %ref_idx514, align 8
  %arrayidx515 = getelementptr inbounds ptr, ptr %tmp10, i64 1
  %tmp11 = load ptr, ptr %arrayidx515, align 8
  %tmp12 = load ptr, ptr %tmp11, align 8
  br i1 %cmp509, label %if.then.511, label %if.else.524

if.then.511:                                      ; preds = %if.end.501
  br label %if.end.549

if.else.524:                                      ; preds = %if.end.501
  store i8 %tmp9, ptr %tmp12, align 1
  %ref_id539 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 38
  %tmp13 = load ptr, ptr %ref_id539, align 8
  br label %if.end.549

if.end.549:                                       ; preds = %if.else.524, %if.then.511
  br label %for.body.393

if.else.643:                                      ; preds = %for.body.393
  unreachable
}