27 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2 3; CHECK: Assumed Context:4; CHECK-NEXT: [N] -> { : }5;6; CHECK: Domain :=7; CHECK-NEXT: [N] -> { Stmt_bb[0] };8 9target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"10 11define void @f(ptr nocapture %a, i64 %N) nounwind {12entry:13 br label %bb14 15bb: ; preds = %bb, %entry16 %i = phi i64 [ 1000, %entry ], [ %i.dec, %bb ]17 %scevgep = getelementptr inbounds i64, ptr %a, i64 %i18 store i64 %i, ptr %scevgep19 %i.dec = add nsw i64 %i, -120 %sub = sub nsw i64 %N, %i21 %exitcond = icmp ult i64 %sub, 022 br i1 %exitcond, label %bb, label %return23 24return: ; preds = %bb, %entry25 ret void26}27