54 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<ast>' -polly-print-ast -aa-pipeline= -disable-output < %s | FileCheck %s --check-prefix=NOAA2; RUN: opt %loadNPMPolly '-passes=polly-custom<ast>' -polly-print-ast -aa-pipeline=tbaa -disable-output < %s | FileCheck %s --check-prefix=TBAA3;4; void jd(int *Int0, int *Int1, float *Float0, float *Float1) {5; for (int i = 0; i < 1024; i++) {6; Int0[i] = Int1[i];7; Float0[i] = Float1[i];8; }9; }10;11; NOAA: if (1 && (12; NOAA-DAG: &MemRef_Int0[1024] <= &MemRef_Float0[0] || &MemRef_Float0[1024] <= &MemRef_Int0[0]13; NOAA-DAG: &MemRef_Int1[1024] <= &MemRef_Float0[0] || &MemRef_Float0[1024] <= &MemRef_Int1[0]14; NOAA-DAG: &MemRef_Float1[1024] <= &MemRef_Float0[0] || &MemRef_Float0[1024] <= &MemRef_Float1[0]15; NOAA-DAG: &MemRef_Int1[1024] <= &MemRef_Int0[0] || &MemRef_Int0[1024] <= &MemRef_Int1[0]16; NOAA-DAG: &MemRef_Float1[1024] <= &MemRef_Int0[0] || &MemRef_Int0[1024] <= &MemRef_Float1[0]17; NOAA: ))18;19; TBAA: if (1 && (20; TBAA-DAG: &MemRef_Int1[1024] <= &MemRef_Int0[0] || &MemRef_Int0[1024] <= &MemRef_Int1[0]21; TBAA-DAG: &MemRef_Float1[1024] <= &MemRef_Float0[0] || &MemRef_Float0[1024] <= &MemRef_Float1[0]22; TBAA: ))23;24target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"25 26define void @jd(ptr nocapture %Int0, ptr nocapture readonly %Int1, ptr nocapture %Float0, ptr nocapture readonly %Float1) {27entry:28 br label %for.body29 30for.body: ; preds = %for.body, %entry31 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]32 %arrayidx = getelementptr inbounds i32, ptr %Int1, i64 %indvars.iv33 %tmp = load i32, ptr %arrayidx, align 4, !tbaa !034 %arrayidx2 = getelementptr inbounds i32, ptr %Int0, i64 %indvars.iv35 store i32 %tmp, ptr %arrayidx2, align 4, !tbaa !036 %arrayidx4 = getelementptr inbounds float, ptr %Float1, i64 %indvars.iv37 %tmp1 = load float, ptr %arrayidx4, align 4, !tbaa !438 %arrayidx6 = getelementptr inbounds float, ptr %Float0, i64 %indvars.iv39 store float %tmp1, ptr %arrayidx6, align 4, !tbaa !440 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 141 %exitcond = icmp eq i64 %indvars.iv.next, 102442 br i1 %exitcond, label %for.end, label %for.body43 44for.end: ; preds = %for.body45 ret void46}47 48!0 = !{!1, !1, i64 0}49!1 = !{!"int", !2, i64 0}50!2 = !{!"omnipotent char", !3, i64 0}51!3 = !{!"Simple C/C++ TBAA"}52!4 = !{!5, !5, i64 0}53!5 = !{!"float", !2, i64 0}54