1 ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \
2 ; RUN: -analyze < %s | FileCheck %s
5 ; for (int i = 0; i < 1024; i++)
6 ; if (A[i] == A[i - 1])
10 ; CHECK: Valid Region for Scop: bb1 => bb14
11 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
13 define void @f(float* %A) {
17 bb1: ; preds = %bb13, %bb
18 %indvars.iv = phi i64 [ %indvars.iv.next, %bb13 ], [ 0, %bb ]
19 %exitcond = icmp ne i64 %indvars.iv, 1024
20 br i1 %exitcond, label %bb2, label %bb14
23 %tmp = getelementptr inbounds float, float* %A, i64 %indvars.iv
24 %tmp3 = load float, float* %tmp, align 4
25 %tmp4 = add nsw i64 %indvars.iv, -1
26 %tmp5 = getelementptr inbounds float, float* %A, i64 %tmp4
27 %tmp6 = load float, float* %tmp5, align 4
28 %tmp7 = fcmp oeq float %tmp3, %tmp6
29 br i1 %tmp7, label %bb8, label %bb12
32 %tmp9 = getelementptr inbounds float, float* %A, i64 %indvars.iv
33 %tmp10 = load float, float* %tmp9, align 4
34 %tmp11 = fadd float %tmp10, 1.000000e+00
35 store float %tmp11, float* %tmp9, align 4
38 bb12: ; preds = %bb8, %bb2
42 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1