1; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s 2 3target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" 4 5define void @f(i64* nocapture %a) nounwind { 6entry: 7 br label %for.i 8 9for.i: 10 %i = phi i64 [ 0, %entry ], [ %i.inc, %for.j ] 11 %i.inc = add nsw i64 %i, 1 12 %exitcond.i = icmp sge i64 %i.inc, 2048 13 br i1 %exitcond.i, label %return, label %for.j 14 15for.j: 16 %j = phi i64 [ 0, %for.i ], [ %j.inc, %body ] 17 %j.inc = add nsw i64 %j, 1 18 %exitcond.j = icmp slt i64 %j.inc, 1024 19 br i1 %exitcond.j, label %body, label %for.i 20 21body: 22 %scevgep = getelementptr i64, i64* %a, i64 %j 23 store i64 %j, i64* %scevgep 24 br label %for.j 25 26return: 27 ret void 28} 29 30 31; CHECK: Statements { 32; CHECK-NEXT: Stmt_body 33; CHECK-NEXT: Domain := 34; CHECK-NEXT: { Stmt_body[i0, i1] : 0 <= i0 <= 2046 and 0 <= i1 <= 1022 }; 35; CHECK-NEXT: Schedule := 36; CHECK-NEXT: { Stmt_body[i0, i1] -> [i0, i1] }; 37; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0] 38; CHECK-NEXT: { Stmt_body[i0, i1] -> MemRef_a[i1] }; 39; CHECK-NEXT: } 40