35 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-detect -polly-print-scops -disable-output < %s 2>&1 | FileCheck %s2;3; Check that we do not build a SCoP and do not crash.4;5; CHECK-NOT: Statements6;7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"8 9; Function Attrs: nounwind uwtable10define void @int_upsample(ptr %A) {11entry:12 %0 = load i8, ptr undef, align 113 %conv7 = zext i8 %0 to i3214 br label %while.body.preheader15 16while.body.preheader: ; preds = %entry17 br label %while.body18 19while.body: ; preds = %if.end, %while.body.preheader20 %outrow.036 = phi i32 [ %add23, %if.end ], [ 0, %while.body.preheader ]21 br i1 true, label %if.end, label %while.body1622 23while.body16: ; preds = %while.body16, %while.body24 br label %while.body1625 26if.end: ; preds = %while.body27 store i32 0, ptr %A28 %add23 = add nuw nsw i32 %outrow.036, 129 %cmp = icmp slt i32 %add23, 030 br i1 %cmp, label %while.body, label %while.end2431 32while.end24: ; preds = %if.end33 ret void34}35