61 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<simplify>' -polly-print-simplify -disable-output -aa-pipeline=basic-aa < %s | FileCheck %s -match-full-lines2;3; The PHINode %cond91.sink.sink.us.sink.6 is in the middle of a region4; statement.5; Check that we are not expect a MemoryKind::PHI access for it, and no6; assertion guarding querying for it.7;8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"9 10%struct.pic_parameter_set_rbsp_t.3.45.87.129.192.255.465.927.969.990.1029 = type { i32, i32, i32, i32, i32, i32, [8 x i32], [6 x [16 x i32]], [2 x [64 x i32]], [6 x i32], [2 x i32], i32, i32, i32, [8 x i32], [8 x i32], [8 x i32], i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }11 12@quant8_intra_default = external global [64 x i32], align 1613@quant_org = external global [16 x i32], align 1614@qmatrix = external local_unnamed_addr global [8 x ptr], align 1615 16; Function Attrs: nounwind uwtable17define void @AssignQuantParam(ptr %pps) local_unnamed_addr {18entry:19 br label %entry.split20 21entry.split: ; preds = %entry22 %pic_scaling_matrix_present_flag = getelementptr inbounds %struct.pic_parameter_set_rbsp_t.3.45.87.129.192.255.465.927.969.990.1029, ptr %pps, i64 0, i32 523 %0 = load i32, ptr %pic_scaling_matrix_present_flag, align 4, !tbaa !124 %tobool = icmp eq i32 %0, 025 br i1 %tobool, label %land.lhs.true, label %if.else26 27land.lhs.true: ; preds = %entry.split28 store ptr @quant_org, ptr getelementptr inbounds ([8 x ptr], ptr @qmatrix, i64 0, i64 4), align 16, !tbaa !729 br label %if.end16130 31if.else: ; preds = %entry.split32 br label %if.else121.us.633 34if.end161: ; preds = %if.else121.us.7, %land.lhs.true35 ret void36 37if.else121.us.6: ; preds = %if.else38 %arrayidx80.us.6 = getelementptr inbounds %struct.pic_parameter_set_rbsp_t.3.45.87.129.192.255.465.927.969.990.1029, ptr %pps, i64 0, i32 6, i64 639 br i1 false, label %if.else121.us.7, label %if.else135.us.640 41if.else135.us.6: ; preds = %if.else121.us.642 br label %if.else121.us.743 44if.else121.us.7: ; preds = %if.else135.us.6, %if.else121.us.645 %cond91.sink.sink.us.sink.6 = phi ptr [ undef, %if.else135.us.6 ], [ @quant8_intra_default, %if.else121.us.6 ]46 br label %if.end16147}48 49!llvm.ident = !{!0}50 51!0 = !{!"clang version 6.0.0 (trunk 308961)"}52!1 = !{!2, !3, i64 20}53!2 = !{!"", !3, i64 0, !5, i64 4, !5, i64 8, !3, i64 12, !3, i64 16, !3, i64 20, !3, i64 24, !3, i64 56, !3, i64 440, !3, i64 952, !3, i64 976, !3, i64 984, !5, i64 988, !5, i64 992, !3, i64 996, !3, i64 1028, !3, i64 1060, !3, i64 1092, !5, i64 1096, !5, i64 1100, !6, i64 1104, !5, i64 1112, !5, i64 1116, !3, i64 1120, !5, i64 1124, !5, i64 1128, !5, i64 1132, !5, i64 1136, !5, i64 1140, !3, i64 1144, !3, i64 1148, !3, i64 1152}54!3 = !{!"omnipotent char", !4, i64 0}55!4 = !{!"Simple C/C++ TBAA"}56!5 = !{!"int", !3, i64 0}57!6 = !{!"any pointer", !3, i64 0}58!7 = !{!6, !6, i64 0}59 60; CHECK: SCoP could not be simplified61