brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 20986d1 Raw
53 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; Check that the access function of the store is simple and concise4;5; CHECK: p0: {0,+,(-1 + (sext i32 (-1 * %smax188) to i64))<nsw>}<%for.cond261.preheader>6;7; CHECK:      MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]8; CHECK-NEXT:   [p_0] -> { Stmt_for_body276[i0] -> MemRef_A[p_0] };9;10; ModuleID = 'bugpoint-reduced-simplified.bc'11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"12 13; Function Attrs: nounwind uwtable14define void @BPredPartitionCost(ptr %A) #0 {15entry:16  %curr_blk = alloca [16 x [16 x i32]], align 1617  br label %for.cond261.preheader.lr.ph18 19for.cond261.preheader.lr.ph:                      ; preds = %entry20  %smax188 = select i1 undef, i32 undef, i32 -921  %0 = sub i32 0, %smax18822  %1 = sext i32 %0 to i6423  %2 = add i64 %1, -124  br label %for.cond261.preheader25 26for.cond261.preheader:                            ; preds = %for.inc299, %for.cond261.preheader.lr.ph27  %indvars.iv189 = phi i64 [ 0, %for.cond261.preheader.lr.ph ], [ %indvars.iv.next190, %for.inc299 ]28  br i1 undef, label %for.cond273.preheader, label %for.inc29929 30for.cond273.preheader:                            ; preds = %for.cond261.preheader31  br label %for.body27632 33for.body276:                                      ; preds = %for.body276, %for.cond273.preheader34  %indvars.iv = phi i64 [ 0, %for.cond273.preheader ], [ %indvars.iv.next, %for.body276 ]35  %3 = add nsw i64 0, %indvars.iv18936  %arrayidx282 = getelementptr inbounds [16 x [16 x i32]], ptr %curr_blk, i64 0, i64 %3, i64 037  %4 = load i32, ptr %arrayidx282, align 438  %arridx = getelementptr i32, ptr %A, i64 %339  store i32 0, ptr %arridx, align 440  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 141  br i1 false, label %for.body276, label %for.end29142 43for.end291:                                       ; preds = %for.body27644  ret void45 46for.inc299:                                       ; preds = %for.cond261.preheader47  %indvars.iv.next190 = add i64 %indvars.iv189, %248  br i1 undef, label %for.cond261.preheader, label %if.end30249 50if.end302:                                        ; preds = %for.inc29951  ret void52}53