1 ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
3 ; Check that we do not build a SCoP and do not crash.
5 ; CHECK-NOT: Statements
7 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
9 ; Function Attrs: nounwind uwtable
10 define void @int_upsample(i32* %A) {
12 %0 = load i8, i8* undef, align 1
13 %conv7 = zext i8 %0 to i32
14 br label %while.body.preheader
16 while.body.preheader: ; preds = %entry
19 while.body: ; preds = %if.end, %while.body.preheader
20 %outrow.036 = phi i32 [ %add23, %if.end ], [ 0, %while.body.preheader ]
21 br i1 true, label %if.end, label %while.body16
23 while.body16: ; preds = %while.body16, %while.body
24 br label %while.body16
26 if.end: ; preds = %while.body
28 %add23 = add nuw nsw i32 %outrow.036, 1
29 %cmp = icmp slt i32 %add23, 0
30 br i1 %cmp, label %while.body, label %while.end24
32 while.end24: ; preds = %if.end