1; RUN: opt %loadPolly -polly-scops -analyze -polly-print-instructions \ 2; RUN: < %s | FileCheck %s 3 4; CHECK: Statements { 5; CHECK: Stmt_bb46 6; CHECK: Domain := 7; CHECK: [tmp44, tmp9] -> { Stmt_bb46[] : tmp9 = tmp44 }; 8; CHECK: Schedule := 9; CHECK: [tmp44, tmp9] -> { Stmt_bb46[] -> [0, 0] }; 10; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1] 11; CHECK: [tmp44, tmp9] -> { Stmt_bb46[] -> MemRef_tmp47[] }; 12; CHECK: Instructions { 13; CHECK: %tmp47 = or i64 1, %tmp14 14; CHECK: } 15; CHECK: Stmt_bb48__TO__bb56 16; CHECK: Domain := 17; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] : tmp9 = tmp44 and 0 <= i0 < tmp44 }; 18; CHECK: Schedule := 19; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] -> [1, i0] }; 20; CHECK: ReadAccess := [Reduction Type: NONE] [Scalar: 0] 21; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] -> MemRef_A[i0] }; 22; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0] 23; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] -> MemRef_A[i0] }; 24; CHECK: ReadAccess := [Reduction Type: NONE] [Scalar: 1] 25; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] -> MemRef_tmp47[] }; 26; CHECK: MayWriteAccess := [Reduction Type: NONE] [Scalar: 0] 27; CHECK: [tmp44, tmp9] -> { Stmt_bb48__TO__bb56[i0] -> MemRef_A[i0] }; 28; CHECK: Instructions { 29; CHECK: %tmp51 = load i64, i64* %tmp50, align 8 30; CHECK: %tmp52 = and i64 %tmp51, %tmp26 31; CHECK: %tmp53 = icmp eq i64 %tmp52, %tmp26 32; CHECK: store i64 42, i64* %tmp50, align 8 33; CHECK: } 34; CHECK: } 35 36target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 37 38define void @quux(i32 %arg, i32 %arg1, i64* %A, i64 %tmp9, i64 %tmp24, i64 %tmp14, i64 %tmp22, i64 %tmp44) { 39bb: 40 %tmp26 = or i64 %tmp22, %tmp24 41 br label %bb39 42 43bb39: ; preds = %bb39, %bb38 44 %tmp45 = icmp eq i64 %tmp44, %tmp9 45 br i1 %tmp45, label %bb46, label %bb81 46 47bb46: ; preds = %bb39 48 %tmp47 = or i64 1, %tmp14 49 br label %bb48 50 51bb48: ; preds = %bb56, %bb46 52 %tmp49 = phi i64 [ 0, %bb46 ], [ %tmp57, %bb56 ] 53 %tmp50 = getelementptr inbounds i64, i64* %A, i64 %tmp49 54 %tmp51 = load i64, i64* %tmp50, align 8 55 %tmp52 = and i64 %tmp51, %tmp26 56 %tmp53 = icmp eq i64 %tmp52, %tmp26 57 store i64 42, i64* %tmp50, align 8 58 br i1 %tmp53, label %bb54, label %bb56 59 60bb54: ; preds = %bb48 61 %tmp55 = xor i64 %tmp51, %tmp47 62 store i64 %tmp55, i64* %tmp50, align 8 63 br label %bb56 64 65bb56: ; preds = %bb54, %bb48 66 %tmp57 = add nuw nsw i64 %tmp49, 1 67 %tmp58 = icmp eq i64 %tmp57, %tmp9 68 br i1 %tmp58, label %bb81, label %bb48 69 70bb81: ; preds = %bb74, %bb56 71 ret void 72} 73