1 ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true \
2 ; RUN: -S < %s | FileCheck %s
4 ; This test case checks whether Polly generates alias metadata in case of
5 ; the ublas gemm kernel and polly-invariant-load-hoisting.
7 ; CHECK: store float 4.200000e+01, ptr %polly.access.A.load, align 4, !alias.scope !3, !noalias !0
10 ; CHECK-NEXT: !1 = distinct !{!1, !2, !"polly.alias.scope.MemRef_A"}
11 ; CHECK-NEXT: !2 = distinct !{!2, !"polly.alias.scope.domain"}
12 ; CHECK-NEXT: !3 = !{!4}
13 ; CHECK-NEXT: !4 = distinct !{!4, !2, !"polly.alias.scope.MemRef_ptrA"}
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 target triple = "x86_64-unknown-linux-gnu"
18 define void @nometadata(ptr %A) {
23 %indvar = phi i64 [0, %entry], [%indvar.next, %for]
24 %indvar.next = add i64 %indvar, 1
25 %ptrA = load ptr, ptr %A
26 store float 42.0, ptr %ptrA
27 %icmp = icmp sle i64 %indvar, 1024
28 br i1 %icmp, label %for, label %exit