1; RUN: opt %loadPolly -polly-opt-isl -polly-invariant-load-hoisting=true \ 2; RUN: -polly-pattern-matching-based-opts=true \ 3; RUN: -polly-target-throughput-vector-fma=1 \ 4; RUN: -polly-target-latency-vector-fma=1 \ 5; RUN: -polly-codegen -polly-target-1st-cache-level-associativity=8 \ 6; RUN: -polly-target-2nd-cache-level-associativity=8 \ 7; RUN: -polly-target-1st-cache-level-size=32768 \ 8; RUN: -polly-target-vector-register-bitwidth=256 \ 9; RUN: -polly-target-2nd-cache-level-size=262144 -S < %s \ 10; RUN: | FileCheck %s 11; 12; This test case checks whether Polly generates second level alias metadata 13; to distinguish the specific accesses in case of the ublas gemm kernel. 14; 15; CHECK: !11 = distinct !{!11, !0, !"second level alias metadata"} 16; CHECK: !12 = distinct !{!12, !0, !"second level alias metadata"} 17; CHECK: !13 = !{!3, !4, !5, !6, !11} 18; CHECK: !14 = distinct !{!14, !0, !"second level alias metadata"} 19; CHECK: !15 = !{!3, !4, !5, !6, !11, !12} 20; CHECK: !16 = distinct !{!16, !0, !"second level alias metadata"} 21; CHECK: !17 = !{!3, !4, !5, !6, !11, !12, !14} 22; 23target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 24target triple = "x86_64-unknown-unknown" 25 26define internal void @kernel_gemm(i32 %arg, i32 %arg1, i32 %arg2, double %arg3, double %arg4, [1056 x double]* %arg5, [1024 x double]* %arg6, [1056 x double]* %arg7) { 27bb: 28 br label %bb8 29 30bb8: ; preds = %bb29, %bb 31 %tmp = phi i64 [ 0, %bb ], [ %tmp30, %bb29 ] 32 br label %bb9 33 34bb9: ; preds = %bb26, %bb8 35 %tmp10 = phi i64 [ 0, %bb8 ], [ %tmp27, %bb26 ] 36 %tmp11 = getelementptr inbounds [1056 x double], [1056 x double]* %arg5, i64 %tmp, i64 %tmp10 37 %tmp12 = load double, double* %tmp11, align 8 38 %tmp13 = fmul double %tmp12, %arg4 39 store double %tmp13, double* %tmp11, align 8 40 br label %Copy_0 41 42Copy_0: ; preds = %Copy_0, %bb9 43 %tmp15 = phi i64 [ 0, %bb9 ], [ %tmp24, %Copy_0 ] 44 %tmp16 = getelementptr inbounds [1024 x double], [1024 x double]* %arg6, i64 %tmp, i64 %tmp15 45 %tmp17 = load double, double* %tmp16, align 8 46 %tmp18 = fmul double %tmp17, %arg3 47 %tmp19 = getelementptr inbounds [1056 x double], [1056 x double]* %arg7, i64 %tmp15, i64 %tmp10 48 %tmp20 = load double, double* %tmp19, align 8 49 %tmp21 = fmul double %tmp18, %tmp20 50 %tmp22 = load double, double* %tmp11, align 8 51 %tmp23 = fadd double %tmp22, %tmp21 52 store double %tmp23, double* %tmp11, align 8 53 %tmp24 = add nuw nsw i64 %tmp15, 1 54 %tmp25 = icmp ne i64 %tmp24, 1024 55 br i1 %tmp25, label %Copy_0, label %bb26 56 57bb26: ; preds = %Copy_0 58 %tmp27 = add nuw nsw i64 %tmp10, 1 59 %tmp28 = icmp ne i64 %tmp27, 1056 60 br i1 %tmp28, label %bb9, label %bb29 61 62bb29: ; preds = %bb26 63 %tmp30 = add nuw nsw i64 %tmp, 1 64 %tmp31 = icmp ne i64 %tmp30, 1056 65 br i1 %tmp31, label %bb8, label %bb32 66 67bb32: ; preds = %bb29 68 ret void 69} 70