1 ; RUN: opt %loadNPMPolly -passes=polly-codegen -disable-output < %s
5 ; for (int i = 1; i < 10; i++) {
12 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14 define void @f(ptr %A) {
18 for.cond: ; preds = %for.inc, %entry
19 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 1, %entry ]
20 %exitcond = icmp ne i64 %indvars.iv, 10
21 br i1 %exitcond, label %for.body, label %for.end
23 for.body: ; preds = %for.cond
24 %arrayidx = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
25 %tmp = load i32, ptr %arrayidx, align 4
26 %inc = add nsw i32 %tmp, 1
27 store i32 %inc, ptr %arrayidx, align 4
28 br i1 false, label %if.then, label %if.end
30 if.then: ; preds = %for.body
31 %tmp1 = load i32, ptr %A, align 4
32 %arrayidx4 = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
33 %tmp2 = load i32, ptr %arrayidx4, align 4
34 %add = add nsw i32 %tmp2, %tmp1
35 store i32 %add, ptr %arrayidx4, align 4
38 if.end: ; preds = %if.then, %for.body
41 for.inc: ; preds = %if.end
42 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
45 for.end: ; preds = %for.cond