1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
2 target 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-n8:16:32:64-S128"
6 define i32 @main(ptr %A) nounwind uwtable {
10 for.cond: ; preds = %for.inc5, %entry
11 %indvar_out = phi i64 [ %indvar_out.next, %for.inc5 ], [ 0, %entry ]
13 %tmp = add i64 %indvar_out, 2
14 %exitcond5 = icmp ne i64 %indvar_out, 1023
15 br i1 %exitcond5, label %for.body, label %for.end7
17 for.body: ; preds = %for.cond
20 for.cond1: ; preds = %for.inc, %for.body
21 %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %for.body ]
22 %exitcond = icmp ne i64 %indvar, 1023
23 br i1 %exitcond, label %for.body3, label %for.end
25 for.body3: ; preds = %for.cond1
26 %tmp1 = add i64 %tmp, %indvar
27 %cmp4 = icmp sgt i64 %tmp1, 1000
28 br i1 %cmp4, label %if.then, label %if.end
30 if.then: ; preds = %for.body3
31 %arrayidx = getelementptr i8, ptr %A, i64 %indvar
32 store i8 5, ptr %arrayidx
35 if.end: ; preds = %if.end.single_exit
38 for.inc: ; preds = %if.end
39 %indvar.next = add i64 %indvar, 1
42 for.end: ; preds = %for.cond1
45 for.inc5: ; preds = %for.end
46 %indvar_out.next = add i64 %indvar_out, 1
49 for.end7: ; preds = %for.cond
53 ; CHECK: p0: {0,+,1}<nuw><nsw><%for.cond>
56 ; CHECK-NEXT: Stmt_if_then
57 ; CHECK-NEXT: Domain :=
58 ; CHECK-NEXT: [p_0] -> { Stmt_if_then[i0] : i0 >= 0 and 999 - p_0 <= i0 <= 1022 };
59 ; CHECK-NEXT: Schedule :=
60 ; CHECK-NEXT: [p_0] -> { Stmt_if_then[i0] -> [0, i0] };
61 ; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
62 ; CHECK-NEXT: [p_0] -> { Stmt_if_then[i0] -> MemRef_A[i0] };
63 ; CHECK-NEXT: Stmt_for_inc5
64 ; CHECK-NEXT: Domain :=
65 ; CHECK-NEXT: [p_0] -> { Stmt_for_inc5[] };
66 ; CHECK-NEXT: Schedule :=
67 ; CHECK-NEXT: [p_0] -> { Stmt_for_inc5[] -> [1, 0] };
68 ; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
69 ; CHECK-NEXT: [p_0] -> { Stmt_for_inc5[] -> MemRef_indvar_out_next[] };