brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.2 KiB · c1ab026 Raw
68 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -S -polly-invariant-load-hoisting=true < %s | FileCheck %s2;3; This crashed our codegen at some point, verify it runs through4;5; CHECK: polly.start6;7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"8 9%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 }10%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 }11%struct.DecRefPicMarking_s = type { i32, i32, i32, i32, i32, ptr }12 13; Function Attrs: nounwind uwtable14define void @compute_colocated(ptr %p) #0 {15entry:16  %tmp = load ptr, ptr undef, align 817  br label %for.body.39318 19for.body.393:                                     ; preds = %if.end.549, %entry20  br i1 undef, label %if.then.397, label %if.else.64321 22if.then.397:                                      ; preds = %for.body.39323  %ref_idx456 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 3624  %tmp1 = load ptr, ptr %ref_idx456, align 825  %tmp2 = load ptr, ptr %tmp1, align 826  %tmp3 = load ptr, ptr %tmp2, align 827  %tmp4 = load i8, ptr %tmp3, align 128  %cmp461 = icmp eq i8 %tmp4, -129  br i1 %cmp461, label %if.then.463, label %if.else.47630 31if.then.463:                                      ; preds = %if.then.39732  br label %if.end.50133 34if.else.476:                                      ; preds = %if.then.39735  %ref_id491 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 3836  %tmp5 = load ptr, ptr %ref_id491, align 837  br label %if.end.50138 39if.end.501:                                       ; preds = %if.else.476, %if.then.46340  %tmp6 = load ptr, ptr %ref_idx456, align 841  %arrayidx505 = getelementptr inbounds ptr, ptr %tmp6, i64 142  %tmp7 = load ptr, ptr %arrayidx505, align 843  %tmp8 = load ptr, ptr %tmp7, align 844  %tmp9 = load i8, ptr %tmp8, align 145  %cmp509 = icmp eq i8 %tmp9, -146  %ref_idx514 = getelementptr inbounds %struct.colocated_params, ptr %p, i64 0, i32 447  %tmp10 = load ptr, ptr %ref_idx514, align 848  %arrayidx515 = getelementptr inbounds ptr, ptr %tmp10, i64 149  %tmp11 = load ptr, ptr %arrayidx515, align 850  %tmp12 = load ptr, ptr %tmp11, align 851  br i1 %cmp509, label %if.then.511, label %if.else.52452 53if.then.511:                                      ; preds = %if.end.50154  br label %if.end.54955 56if.else.524:                                      ; preds = %if.end.50157  store i8 %tmp9, ptr %tmp12, align 158  %ref_id539 = getelementptr inbounds %struct.storable_picture9, ptr %tmp, i64 0, i32 3859  %tmp13 = load ptr, ptr %ref_id539, align 860  br label %if.end.54961 62if.end.549:                                       ; preds = %if.else.524, %if.then.51163  br label %for.body.39364 65if.else.643:                                      ; preds = %for.body.39366  unreachable67}68