1 ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -analyze < %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
5 ; Function Attrs: nounwind uwtable
6 define void @kernel_reg_detect([6 x i32]* %path) {
10 for.body.6: ; preds = %for.inc.43, %for.body.6, %entry
11 %indvars.iv9 = phi i64 [ %indvars.iv.next10, %for.body.6 ], [ 0, %entry ]
12 %indvars.iv.next10 = add nuw nsw i64 %indvars.iv9, 1
13 %exitcond = icmp ne i64 %indvars.iv.next10, 6
14 br i1 %exitcond, label %for.body.6, label %for.inc.40
16 for.inc.40: ; preds = %for.inc.40, %for.body.6
17 %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc.40 ], [ 0, %for.body.6 ]
18 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
19 %arrayidx28 = getelementptr inbounds [6 x i32], [6 x i32]* %path, i64 0, i64 0
20 %tmp = load i32, i32* %arrayidx28, align 4
21 %arrayidx36 = getelementptr inbounds [6 x i32], [6 x i32]* %path, i64 0, i64 0
22 store i32 0, i32* %arrayidx36, align 4
23 %mul = mul i64 %indvars.iv, %indvars.iv
24 %exitcond22 = icmp ne i64 %mul, 6
25 br i1 %exitcond22, label %for.inc.40, label %for.inc.43
27 for.inc.43: ; preds = %for.inc.40
30 for.end.45: ; preds = %for.inc.43