1; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -analyze < %s 2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4 5; Function Attrs: nounwind uwtable 6define void @kernel_reg_detect([6 x i32]* %path) { 7entry: 8 br label %for.body.6 9 10for.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 15 16for.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 26 27for.inc.43: ; preds = %for.inc.40 28 br label %for.end.45 29 30for.end.45: ; preds = %for.inc.43 31 ret void 32} 33