1 ; RUN: opt %loadPolly -polly-scops -analyze \
2 ; RUN: -polly-allow-nonaffine -polly-process-unprofitable < %s | FileCheck %s
5 ; CHECK-NEXT: [srcHeight] -> { Stmt_for_cond6_preheader_us[i0] : 0 <= i0 <= -3 + srcHeight };
6 ; CHECK-NEXT: Schedule :=
7 ; CHECK-NEXT: [srcHeight] -> { Stmt_for_cond6_preheader_us[i0] -> [i0] };
8 ; CHECK-NEXT: ReadAccess := [Reduction Type: +] [Scalar: 0]
9 ; CHECK-NEXT: [srcHeight] -> { Stmt_for_cond6_preheader_us[i0] -> MemRef_src[o0] };
10 ; CHECK-NEXT: MayWriteAccess := [Reduction Type: +] [Scalar: 0]
11 ; CHECK-NEXT: [srcHeight] -> { Stmt_for_cond6_preheader_us[i0] -> MemRef_src[o0] };
13 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
15 define void @test_case(i8* noalias nocapture readonly %src, i32 %srcHeight, i32 %srcStride) local_unnamed_addr {
17 %extended = zext i32 %srcStride to i64
18 %sub = add i32 %srcHeight, -1
19 br label %for.cond6.preheader.us
21 for.cond6.preheader.us: ; preds = %for.cond6.preheader.us, %entry
22 %srcPtr.075.us.pn = phi i8* [ %srcPtr.075.us, %for.cond6.preheader.us ], [ %src, %entry ]
23 %y.072.us = phi i32 [ %inc37.us, %for.cond6.preheader.us ], [ 1, %entry ]
24 %srcPtr.075.us = getelementptr inbounds i8, i8* %srcPtr.075.us.pn, i64 %extended
26 %0 = load i8, i8* %srcPtr.075.us, align 1, !tbaa !0
28 store i8 %1, i8* %srcPtr.075.us, align 1, !tbaa !0
30 %inc37.us = add nuw i32 %y.072.us, 1
31 %exitcond78 = icmp eq i32 %inc37.us, %sub
32 br i1 %exitcond78, label %for.cond.cleanup.loopexit, label %for.cond6.preheader.us
34 for.cond.cleanup.loopexit: ; preds = %for.cond6.preheader.us
39 !1 = !{!"omnipotent char", !2, i64 0}
40 !2 = !{!"Simple C++ TBAA"}
42 !4 = !{!"float", !1, i64 0}