1 ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -disable-output < %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(ptr %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 %tmp = load i32, ptr %path, align 4
20 store i32 0, ptr %path, align 4
21 %mul = mul i64 %indvars.iv, %indvars.iv
22 %exitcond22 = icmp ne i64 %mul, 6
23 br i1 %exitcond22, label %for.inc.40, label %for.inc.43
25 for.inc.43: ; preds = %for.inc.40
28 for.end.45: ; preds = %for.inc.43