1; RUN: opt %loadPolly -polly-scops -analyze \ 2; RUN: -polly-allow-nonaffine -polly-process-unprofitable < %s | FileCheck %s 3; 4; CHECK: Domain := 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] }; 12 13target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 14 15define void @test_case(i8* noalias nocapture readonly %src, i32 %srcHeight, i32 %srcStride) local_unnamed_addr { 16entry: 17 %extended = zext i32 %srcStride to i64 18 %sub = add i32 %srcHeight, -1 19 br label %for.cond6.preheader.us 20 21for.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 25 26 %0 = load i8, i8* %srcPtr.075.us, align 1, !tbaa !0 27 %1 = add i8 %0, 1 28 store i8 %1, i8* %srcPtr.075.us, align 1, !tbaa !0 29 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 33 34for.cond.cleanup.loopexit: ; preds = %for.cond6.preheader.us 35 ret void 36} 37 38!0 = !{!1, !1, i64 0} 39!1 = !{!"omnipotent char", !2, i64 0} 40!2 = !{!"Simple C++ TBAA"} 41!3 = !{!4, !4, i64 0} 42!4 = !{!"float", !1, i64 0} 43