1; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
2;
3; Check that we do not build a SCoP and do not crash.
4;
5; CHECK-NOT: Statements
6;
7target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8
9; Function Attrs: nounwind uwtable
10define void @int_upsample(i32* %A) {
11entry:
12  %0 = load i8, i8* undef, align 1
13  %conv7 = zext i8 %0 to i32
14  br label %while.body.preheader
15
16while.body.preheader:                             ; preds = %entry
17  br label %while.body
18
19while.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
22
23while.body16:                                     ; preds = %while.body16, %while.body
24  br label %while.body16
25
26if.end:                                           ; preds = %while.body
27  store i32 0, i32* %A
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
31
32while.end24:                                      ; preds = %if.end
33  ret void
34}
35