1; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=NOAA 2; RUN: opt %loadPolly -polly-scops -analyze -tbaa < %s | FileCheck %s --check-prefix=TBAA 3; 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; 11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 12 13define void @jd(i32* nocapture %Int0, i32* nocapture readonly %Int1, float* nocapture %Float0, float* nocapture readonly %Float1) { 14entry: 15 br label %for.body 16 17for.body: ; preds = %for.body, %entry 18 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] 19 %arrayidx = getelementptr inbounds i32, i32* %Int1, i64 %indvars.iv 20 %tmp = load i32, i32* %arrayidx, align 4, !tbaa !0 21 %arrayidx2 = getelementptr inbounds i32, i32* %Int0, i64 %indvars.iv 22 store i32 %tmp, i32* %arrayidx2, align 4, !tbaa !0 23 %arrayidx4 = getelementptr inbounds float, float* %Float1, i64 %indvars.iv 24 %tmp1 = load float, float* %arrayidx4, align 4, !tbaa !4 25 %arrayidx6 = getelementptr inbounds float, float* %Float0, i64 %indvars.iv 26 store float %tmp1, float* %arrayidx6, align 4, !tbaa !4 27 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 28 %exitcond = icmp eq i64 %indvars.iv.next, 1024 29 br i1 %exitcond, label %for.end, label %for.body 30 31for.end: ; preds = %for.body 32 ret void 33} 34 35!0 = !{!1, !1, i64 0} 36!1 = !{!"int", !2, i64 0} 37!2 = !{!"omnipotent char", !3, i64 0} 38!3 = !{!"Simple C/C++ TBAA"} 39!4 = !{!5, !5, i64 0} 40!5 = !{!"float", !2, i64 0} 41 42; NOAA: Alias Groups (2): 43; NOAA-NEXT: {{\[\[}} 44; NOAA-DAG: <{ MemRef_Int0[(0)] }, { MemRef_Int0[(1024)] }> 45; NOAA-DAG: <{ MemRef_{{(Int|Float)}}1[(0)] }, { MemRef_{{(Int|Float)}}1[(1024)] }> 46; NOAA-DAG: <{ MemRef_Float0[(0)] }, { MemRef_Float0[(1024)] }> 47; NOAA: {{\]\]}} 48; NOAA-NEXT: {{\[\[}} 49; NOAA-DAG: <{ MemRef_Int0[(0)] }, { MemRef_Int0[(1024)] }> 50; NOAA-DAG: <{ MemRef_Float0[(0)] }, { MemRef_Float0[(1024)] }> 51; NOAA-DAG: <{ MemRef_{{(Int|Float)}}1[(0)] }, { MemRef_{{(Int|Float)}}1[(1024)] }> 52; NOAA: {{\]\]}} 53 54 55; TBAA: Alias Groups (2): 56; TBAA-NEXT: {{\[\[}} 57; TBAA-DAG: <{ MemRef_Int0[(0)] }, { MemRef_Int0[(1024)] }> 58; TBAA-DAG: <{ MemRef_Int1[(0)] }, { MemRef_Int1[(1024)] }> 59; TBAA: {{\]\]}} 60; TBAA-NEXT: {{\[\[}} 61; TBAA-DAG: <{ MemRef_Float0[(0)] }, { MemRef_Float0[(1024)] }> 62; TBAA-DAG: <{ MemRef_Float1[(0)] }, { MemRef_Float1[(1024)] }> 63; TBBA: {{\]\]}} 64