1; RUN: opt %loadPolly -analyze -polly-scops -pass-remarks-analysis=.* < %s 2>&1 > /dev/null | FileCheck %s
2
3; Make sure we hit the complexity bailout, and don't crash.
4; CHECK: Low complexity assumption:       {  : false }
5
6target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
7target triple = "thumbv8--linux-android"
8
9define hidden void @f(i32 %arg1, i32 %arg2, i32 %cond, i32 %tmp, i32 %tmp196) {
10entry:
11  %div = sdiv i32 %tmp, 8
12  %div10 = sdiv i32 %arg1, 8
13  %div11 = sdiv i32 %tmp196, 2
14  %add = add nsw i32 %div10, %div11
15  %sub19 = add nsw i32 %div, -1
16  %cmp20 = icmp slt i32 %add, %sub19
17  %add.sub19 = select i1 %cmp20, i32 %add, i32 %sub19
18  %div469 = sdiv i32 %arg2, 8
19  %cmp.i68 = icmp slt i32 %div469, %cond
20  %cond.i = select i1 %cmp.i68, i32 %cond, i32 %div469
21  %sub.i69 = add i32 0, %div469
22  %cmp9.i = icmp sgt i32 %sub.i69, %add.sub19
23  %sub15.max_x.i = select i1 %cmp9.i, i32 %add.sub19, i32 %sub.i69
24  %sub30.i = sub nsw i32 %sub15.max_x.i, %cond.i
25  %add31.i = add nsw i32 %sub30.i, 1
26  br label %for.body.us.i
27
28for.body.us.i:
29  br label %for.body47.us.i
30
31for.body47.us.i:
32  %cmp45.us.i = icmp ult i32 0, %add31.i
33  br i1 %cmp45.us.i, label %for.body47.us.i, label %for.cond44.for.cond.cleanup46_crit_edge.us.i
34
35for.cond44.for.cond.cleanup46_crit_edge.us.i:
36  br label %for.body.us.i
37}
38