1; RUN: opt %loadPolly -polly-codegen -S \ 2; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s 3; 4; This crashed our codegen at some point, verify it runs through 5; 6; CHECK: polly.start 7; 8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 9 10%struct.colocated_params = type { i32, i32, i32, [6 x [33 x i64]], i8***, i64***, i16****, i8**, [6 x [33 x i64]], i8***, i64***, i16****, i8**, [6 x [33 x i64]], i8***, i64***, i16****, i8**, i8, i8** } 11%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, i16**, i16***, i8*, i16**, i8***, i64***, i64***, i16****, i8**, i8**, %struct.storable_picture9*, %struct.storable_picture9*, %struct.storable_picture9*, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32, %struct.DecRefPicMarking_s*, i32 } 12%struct.DecRefPicMarking_s = type { i32, i32, i32, i32, i32, %struct.DecRefPicMarking_s* } 13 14; Function Attrs: nounwind uwtable 15define void @compute_colocated(%struct.colocated_params* %p) #0 { 16entry: 17 %tmp = load %struct.storable_picture9*, %struct.storable_picture9** undef, align 8 18 br label %for.body.393 19 20for.body.393: ; preds = %if.end.549, %entry 21 br i1 undef, label %if.then.397, label %if.else.643 22 23if.then.397: ; preds = %for.body.393 24 %ref_idx456 = getelementptr inbounds %struct.storable_picture9, %struct.storable_picture9* %tmp, i64 0, i32 36 25 %tmp1 = load i8***, i8**** %ref_idx456, align 8 26 %tmp2 = load i8**, i8*** %tmp1, align 8 27 %arrayidx458 = getelementptr inbounds i8*, i8** %tmp2, i64 0 28 %tmp3 = load i8*, i8** %arrayidx458, align 8 29 %arrayidx459 = getelementptr inbounds i8, i8* %tmp3, i64 0 30 %tmp4 = load i8, i8* %arrayidx459, align 1 31 %cmp461 = icmp eq i8 %tmp4, -1 32 br i1 %cmp461, label %if.then.463, label %if.else.476 33 34if.then.463: ; preds = %if.then.397 35 br label %if.end.501 36 37if.else.476: ; preds = %if.then.397 38 %ref_id491 = getelementptr inbounds %struct.storable_picture9, %struct.storable_picture9* %tmp, i64 0, i32 38 39 %tmp5 = load i64***, i64**** %ref_id491, align 8 40 br label %if.end.501 41 42if.end.501: ; preds = %if.else.476, %if.then.463 43 %tmp6 = load i8***, i8**** %ref_idx456, align 8 44 %arrayidx505 = getelementptr inbounds i8**, i8*** %tmp6, i64 1 45 %tmp7 = load i8**, i8*** %arrayidx505, align 8 46 %arrayidx506 = getelementptr inbounds i8*, i8** %tmp7, i64 0 47 %tmp8 = load i8*, i8** %arrayidx506, align 8 48 %arrayidx507 = getelementptr inbounds i8, i8* %tmp8, i64 0 49 %tmp9 = load i8, i8* %arrayidx507, align 1 50 %cmp509 = icmp eq i8 %tmp9, -1 51 %ref_idx514 = getelementptr inbounds %struct.colocated_params, %struct.colocated_params* %p, i64 0, i32 4 52 %tmp10 = load i8***, i8**** %ref_idx514, align 8 53 %arrayidx515 = getelementptr inbounds i8**, i8*** %tmp10, i64 1 54 %tmp11 = load i8**, i8*** %arrayidx515, align 8 55 %arrayidx516 = getelementptr inbounds i8*, i8** %tmp11, i64 0 56 %tmp12 = load i8*, i8** %arrayidx516, align 8 57 %arrayidx517 = getelementptr inbounds i8, i8* %tmp12, i64 0 58 br i1 %cmp509, label %if.then.511, label %if.else.524 59 60if.then.511: ; preds = %if.end.501 61 br label %if.end.549 62 63if.else.524: ; preds = %if.end.501 64 store i8 %tmp9, i8* %arrayidx517, align 1 65 %ref_id539 = getelementptr inbounds %struct.storable_picture9, %struct.storable_picture9* %tmp, i64 0, i32 38 66 %tmp13 = load i64***, i64**** %ref_id539, align 8 67 br label %if.end.549 68 69if.end.549: ; preds = %if.else.524, %if.then.511 70 br label %for.body.393 71 72if.else.643: ; preds = %for.body.393 73 unreachable 74} 75