236
|
1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
|
150
|
2 ;
|
|
3 ; Verify we do not create a SCoP in the presence of infinite loops.
|
|
4 ;
|
|
5 ; CHECK-NOT: Statements
|
|
6 ;
|
|
7 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64"
|
|
8
|
252
|
9 define void @foo(ptr noalias nocapture readonly %xxx, ptr noalias nocapture readonly %yyy, ptr nocapture readonly %zzz, i32 %conv6) {
|
150
|
10 while.body.us.preheader:
|
252
|
11 %a2 = load ptr, ptr %zzz, align 4
|
236
|
12 %sub = add nsw i32 %conv6, -1
|
150
|
13 br label %while.body.us
|
|
14
|
|
15 while.body.us: ; preds = %while.body.us.preheader, %if.then.us
|
|
16 %uuu = phi i32 [ %www, %if.then.us ], [ 0, %while.body.us.preheader ]
|
252
|
17 %a13 = load i32, ptr %yyy, align 8
|
150
|
18 %vvv = icmp sgt i32 %a13, 0
|
|
19 br i1 %vvv, label %while.body.13.us58.preheader, label %if.then.us
|
|
20
|
|
21 while.body.13.us58.preheader: ; preds = %while.body.us
|
|
22 br label %while.body.13.us58
|
|
23
|
|
24 if.then.us: ; preds = %while.body.us
|
|
25 %add.us = add nuw nsw i32 %uuu, 1
|
252
|
26 tail call void @goo(ptr %a2, i32 %uuu, ptr %a2, i32 %add.us, i32 %sub, i32 %a13) #3
|
150
|
27 %www = add nuw nsw i32 %uuu, %conv6
|
252
|
28 %a14 = load i32, ptr %xxx, align 4
|
150
|
29 %cmp.us = icmp slt i32 %www, %a14
|
|
30 br i1 %cmp.us, label %while.body.us, label %while.end.21.loopexit145
|
|
31
|
|
32 while.body.13.us58:
|
|
33 br label %while.body.13.us58
|
|
34
|
|
35 while.end.21.loopexit145:
|
|
36 ret void
|
|
37 }
|
|
38
|
252
|
39 declare void @goo(ptr, i32, ptr, i32, i32, i32) #1
|
150
|
40
|