59 lines · plain
1; RUN: opt %loadNPMPolly -pass-remarks-analysis=polly-scops '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; CHECK: Low complexity assumption: { : false }4;5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"6 7%struct.bc_struct.0.2.4.6.13.20.27.43.44.46.50.52.58.60.81.89.90.99.107.108.109.111.116.118.149 = type { i32, i32, i32, i32, [1024 x i8] }8 9; Function Attrs: nounwind uwtable10define void @bc_multiply(ptr readonly %n1, i32 %scale) #0 {11entry:12 %0 = load i32, ptr undef, align 413 %1 = load i32, ptr undef, align 414 %2 = load i32, ptr undef, align 415 %add3 = add nsw i32 %2, %116 %cmp = icmp sgt i32 %0, %217 %. = select i1 %cmp, i32 %0, i32 %218 %cmp12 = icmp slt i32 %., %scale19 %scale.. = select i1 %cmp12, i32 %scale, i32 %.20 %cmp26 = icmp sgt i32 0, %scale..21 %scale...add7 = select i1 %cmp26, i32 %scale.., i32 022 %sub = sub nsw i32 0, %scale...add723 %add.ptr = getelementptr inbounds %struct.bc_struct.0.2.4.6.13.20.27.43.44.46.50.52.58.60.81.89.90.99.107.108.109.111.116.118.149, ptr %n1, i64 0, i32 4, i64 024 %add.ptr59 = getelementptr inbounds i8, ptr %add.ptr, i64 -125 %idx.ext62 = sext i32 %add3 to i6426 %cmp70140 = icmp sgt i32 %sub, 027 br label %for.body104.lr.ph28 29for.body104.lr.ph: ; preds = %entry30 %3 = add i32 0, -131 %4 = sub i32 %3, %scale...add732 %5 = add i32 %4, 133 %6 = sext i32 %5 to i6434 br label %for.body10435 36for.body104: ; preds = %while.end146, %for.body104.lr.ph37 %indvars.iv = phi i64 [ %6, %for.body104.lr.ph ], [ poison, %while.end146 ]38 %7 = sub nsw i64 %indvars.iv, %idx.ext6239 %cmp107 = icmp slt i64 %7, -140 %.op = xor i64 %7, -141 %idx.neg116 = select i1 %cmp107, i64 0, i64 %.op42 %add.ptr117 = getelementptr inbounds i8, ptr %add.ptr59, i64 %idx.neg11643 br label %while.body13844 45while.body138: ; preds = %while.body138, %for.body10446 %n1ptr.1126 = phi ptr [ %incdec.ptr139, %while.body138 ], [ %add.ptr117, %for.body104 ]47 %incdec.ptr139 = getelementptr inbounds i8, ptr %n1ptr.1126, i64 -148 %cmp132 = icmp uge ptr %incdec.ptr139, null49 %cmp135 = icmp slt i64 0, -150 %or.cond99 = and i1 %cmp135, %cmp13251 br i1 %or.cond99, label %while.body138, label %while.end14652 53while.end146: ; preds = %while.body13854 br i1 undef, label %free_num.exit, label %for.body10455 56free_num.exit: ; preds = %while.end14657 ret void58}59